Skip to content

Commit 4c20ccf

Browse files
committed
Replace figlet logo generation with static ASCII art
Removes dynamic logo generation using figlet in Dockerfiles and replaces it with a static ASCII art file (mono-12.txt). Updates entrypoint scripts to display the new static logo, simplifying the build process and removing the dependency on figlet.
1 parent d3a246e commit 4c20ccf

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

docker/dev.dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
ARG V_GOLANG=1.25.3
22
ARG V_NODE=25
33
ARG V_ALPINE=3
4-
FROM alpine:${V_ALPINE} AS logo
5-
WORKDIR /app
6-
RUN apk add figlet > /dev/null 2>&1
7-
RUN figlet Quiz > logo.txt
8-
94
FROM golang:${V_GOLANG}-alpine AS final
105
RUN apk update && apk add --no-cache tzdata dumb-init && \
116
rm -rf /tmp/* /var/tmp/* /usr/share/man /var/cache/apk/*
@@ -17,6 +12,6 @@ WORKDIR /app
1712
COPY ./go.mod ./go.sum ./
1813
RUN go mod download > /dev/null 2>&1
1914

20-
COPY --from=logo /app/logo.txt /logo.txt
15+
COPY ./docker/mono-12.txt /mono-12.txt
2116

2217
ENTRYPOINT ["dumb-init", "--", "/app/docker/dev.entrypoint.sh"]

docker/dev.entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/sh
22
set -e
33

4-
cat /logo.txt
4+
cat /mono-12.txt
55

66
air --build.cmd "go build -o tmp/bin/main ." \
77
--build.include_ext "go" \
88
--build.exclude_dir "web,docs,node_modules,dist,tmp" \
9-
--build.bin "tmp/bin/main" \
9+
--build.entrypoint "tmp/bin/main" \
1010
--build.delay "100" \
1111
--build.stop_on_error "false" \
1212
--misc.clean_on_exit true

docker/dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
ARG V_GOLANG=1.25.3
22
ARG V_NODE=25
33
ARG V_ALPINE=3
4-
FROM alpine:${V_ALPINE} AS logo
5-
WORKDIR /app
6-
RUN apk add figlet > /dev/null 2>&1
7-
RUN figlet Quiz > logo.txt
84

95
FROM golang:${V_GOLANG}-alpine AS golang-builder
106
WORKDIR /app
@@ -35,7 +31,7 @@ COPY ./config/logo.svg /logo.svg
3531

3632
WORKDIR /app
3733

38-
COPY --from=logo /app/logo.txt .
34+
COPY ./docker/mono-12.txt /mono-12.txt
3935
COPY --from=golang-builder /app/quiz .
4036
COPY --from=node-builder /app/dist/ ./web/
4137
COPY ./docker/entrypoint.sh .

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
cat /app/logo.txt
4+
cat /app/mono-12.txt
55

66
mkdir -p /app/config
77
if [ -f /logo.svg ] && [ ! -f /app/config/logo.svg ]; then

docker/mono-12.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
▄▄▄▄ ██
3+
██▀▀██ ▀▀
4+
██ ██ ██ ██ ████ ████████
5+
██ ██ ██ ██ ██ ▄█▀
6+
██ ██ ██ ██ ██ ▄█▀
7+
██▄▄██▀ ██▄▄▄███ ▄▄▄██▄▄▄ ▄██▄▄▄▄▄
8+
▀▀▀██ ▀▀▀▀ ▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀
9+

0 commit comments

Comments
 (0)