adjust docker image

This commit is contained in:
Aine
2022-10-24 21:10:40 +03:00
parent b8c9d28324
commit 01e3dfc6cf

View File

@@ -1,20 +1,16 @@
FROM registry.gitlab.com/etke.cc/base AS builder
FROM registry.gitlab.com/etke.cc/base/build AS builder
WORKDIR /postmoogle
COPY . .
RUN make build
FROM alpine:latest
FROM registry.gitlab.com/etke.cc/base/app
ENV POSTMOOGLE_DB_DSN /data/postmoogle.db
RUN apk --no-cache add ca-certificates tzdata olm && \
adduser -D -g '' postmoogle && \
mkdir /data && chown -R postmoogle /data
COPY --from=builder /postmoogle/postmoogle /bin/postmoogle
USER postmoogle
USER app
ENTRYPOINT ["/bin/postmoogle"]