updated dockerfile and compose file
This commit is contained in:
@@ -4,3 +4,4 @@ build
|
|||||||
.git
|
.git
|
||||||
*.md
|
*.md
|
||||||
src/
|
src/
|
||||||
|
db/
|
||||||
|
|||||||
+4
-2
@@ -1,5 +1,5 @@
|
|||||||
# ---- Build Stage ----
|
# ---- Build Stage ----
|
||||||
FROM node:22-alpine AS builder
|
FROM node:alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -15,12 +15,14 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# ---- Production Stage ----
|
# ---- Production Stage ----
|
||||||
FROM node:22-alpine AS runner
|
FROM node:alpine AS runner
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
RUN apk add --no-cache openssl
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --omit=dev
|
RUN npm ci --omit=dev
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: registry.henryathome.home64.de/henry/annasrechnungsmanager:latest
|
image: annasrechnungsmanager:latest
|
||||||
container_name: annas_app
|
container_name: annas_app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user