diff --git a/.dockerignore b/.dockerignore index 16b990f..5423539 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,3 +4,4 @@ build .git *.md src/ +db/ diff --git a/Dockerfile b/Dockerfile index b85739d..ae81adb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ---- Build Stage ---- -FROM node:22-alpine AS builder +FROM node:alpine AS builder WORKDIR /app @@ -15,12 +15,14 @@ COPY . . RUN npm run build # ---- Production Stage ---- -FROM node:22-alpine AS runner +FROM node:alpine AS runner WORKDIR /app ENV NODE_ENV=production +RUN apk add --no-cache openssl + COPY package*.json ./ RUN npm ci --omit=dev diff --git a/docker-compose.yml b/docker-compose.yml index 53e481e..e3f86a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: retries: 5 app: - image: registry.henryathome.home64.de/henry/annasrechnungsmanager:latest + image: annasrechnungsmanager:latest container_name: annas_app restart: unless-stopped ports: