switched to fully self contained docker

This commit is contained in:
David Schroeder
2026-07-26 14:01:20 -05:00
parent 0ed0fb5817
commit 5d2f90ce24
34 changed files with 688 additions and 672 deletions
+6 -3
View File
@@ -10,12 +10,15 @@ RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/tapm-se
FROM alpine:3.22
RUN apk add --no-cache ca-certificates \
&& addgroup -S tapm \
&& adduser -S -G tapm -H tapm
&& addgroup -S -g 1000 tapm \
&& adduser -S -u 1000 -G tapm -H tapm \
&& mkdir -p /data \
&& chown tapm:tapm /data
WORKDIR /app
COPY --from=build /out/tapm-server /usr/local/bin/tapm-server
COPY --from=build /out/tapm-migrate /usr/local/bin/tapm-migrate
COPY migrations /app/migrations
COPY --chmod=755 docker-entrypoint.sh /usr/local/bin/docker-entrypoint
USER tapm
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/tapm-server"]
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]