1
0

🏗️」 wip: Need to fix fileEnv func to rm newline at the env

This commit is contained in:
keyzox
2025-03-05 20:17:37 +01:00
parent 834468e1bd
commit 055ccdc1df
6 changed files with 22 additions and 15 deletions

View File

@ -27,7 +27,7 @@ EXPOSE 21
EXPOSE 30000-30100
VOLUME /var/ftp
STOPSIGNAL SIGTERM
STOPSIGNAL SIGKILL
ENTRYPOINT [ "/docker-entrypoint" ]

View File

@ -11,7 +11,8 @@ COPY internal /build/internal
RUN cd /build \
&& go build git.keyzox.me/42_adjoly/inception/cmd/mariadb/entrypoint \
&& go build git.keyzox.me/42_adjoly/inception/cmd/mariadb/healthcheck
&& go build git.keyzox.me/42_adjoly/inception/cmd/mariadb/healthcheck \
&& go build git.keyzox.me/42_adjoly/inception/cmd/getFileEnv
FROM scratch
ADD docker/alpine/alpine-minirootfs-3.21.2-x86_64.tar.gz /
@ -24,6 +25,7 @@ RUN addgroup mysql \
COPY --from=builder /build/entrypoint /docker-entrypoint
COPY --from=builder /build/healthcheck /docker-healthcheck
COPY --from=builder /build/getFileEnv /bin/getFileEnv
RUN apk add --no-cache mariadb tzdata mariadb-client \
&& chmod +x /docker-healthcheck \