feat(docker): housekeeping for dockerfile
All checks were successful
/ build (push) Successful in 5m30s

This commit is contained in:
Varakh 2024-12-11 09:19:36 +01:00
parent 51eaa38a8f
commit f3b6b17768
2 changed files with 13 additions and 6 deletions

8
.dockerignore Normal file
View file

@ -0,0 +1,8 @@
.forgejo
.run
_doc
bin
server/web/node_modules
server/web/build
server/web/ci/*
server/web/coverage

View file

@ -13,8 +13,7 @@ RUN apk --update upgrade && \
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN rm -rf bin/ && \ RUN npm install --global pnpm@^9 && \
npm install --global pnpm@^9 && \
CC=gcc make ci CC=gcc make ci
# #
@ -29,10 +28,10 @@ LABEL maintainer="Varakh <varakh@varakh.de>" \
org.opencontainers.image.description="upda" \ org.opencontainers.image.description="upda" \
org.opencontainers.image.base.name="alpine:3.20" org.opencontainers.image.base.name="alpine:3.20"
ENV USER=appuser \ ENV USER appuser
GROUP=appuser \ ENV GROUP appuser
UID=2033 \ ENV UID 2033
GID=2033 ENV GID 2033
RUN apk --update upgrade && \ RUN apk --update upgrade && \
apk add sqlite tzdata && \ apk add sqlite tzdata && \