chore: simplify dev docker and update Makefile accordingly

This commit is contained in:
yusing
2025-10-10 23:24:14 +08:00
parent b23c3f1c3b
commit c4c9e9300c
3 changed files with 8 additions and 31 deletions

View File

@@ -1,27 +1,7 @@
# Stage 1: deps
FROM alpine:3.22 AS deps
HEALTHCHECK NONE
FROM alpine:3.22
# package version does not matter
# trunk-ignore(hadolint/DL3018)
RUN apk add --no-cache tzdata
# Stage 2: Final image
FROM deps
LABEL maintainer="yusing@6uo.me"
LABEL proxy.exclude=1
ARG TARGET
ENV TARGET=${TARGET}
ENV DOCKER_HOST=unix:///var/run/docker.sock
# copy binary
COPY bin/${TARGET} /app/run
RUN apk add --no-cache ca-certificates
WORKDIR /app
RUN chown -R 1000:1000 /app
CMD ["/app/run"]
CMD ["/app/run"]