Merge pull request 'build: update containerfile' () from Containerfile into dev

Reviewed-on: 
This commit is contained in:
Maurice 2024-02-01 19:08:54 +00:00
commit f5aac579ff

@ -18,9 +18,12 @@ RUN case "$(apk --print-arch)" in \
mv ./target/aarch64-unknown-linux-musl /release ;; \ mv ./target/aarch64-unknown-linux-musl /release ;; \
esac esac
FROM alpine:edge FROM alpine:3.19
WORKDIR /app WORKDIR /app
RUN mkdir /app/wwwroot
RUN mkdir wwwroot data && \
adduser -D appuser && \
chown appuser:appuser data
# /* removes directory structure # /* removes directory structure
COPY --from=builder /release/* /app COPY --from=builder /release/* /app
@ -28,5 +31,6 @@ COPY ./about.html /app/about.html
COPY --from=frontend-builder /build/dist /app/wwwroot COPY --from=frontend-builder /build/dist /app/wwwroot
ENV WWW_DIR /app/wwwroot ENV WWW_DIR /app/wwwroot
USER appuser
EXPOSE 8080 EXPOSE 8080
CMD [ "./pastabble" ] CMD [ "./pastabble" ]