Updated docker files and package-lock.json

This commit is contained in:
MarcUs7i 2025-03-18 23:11:13 +01:00
parent 880a5e58cc
commit 27248c7c86
3 changed files with 737 additions and 18031 deletions

View file

@ -1,7 +1,15 @@
FROM node:16-alpine # Build
FROM node:20-alpine AS builder
WORKDIR /app WORKDIR /app
COPY package*.json . COPY package*.json ./
RUN npm install RUN npm ci
COPY . . COPY . .
EXPOSE 3006 RUN npm run build
CMD ["npm", "run"]
# Serve
FROM node:20-alpine AS production
WORKDIR /app
RUN npm install -g serve
COPY --from=builder /app/build ./build
EXPOSE 3000
CMD ["serve", "-s", "build"]

View file

@ -4,5 +4,4 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "3006:3006" - "3000:3000"
command: "npm start"

18747
package-lock.json generated

File diff suppressed because it is too large Load diff