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
COPY package*.json .
RUN npm install
COPY package*.json ./
RUN npm ci
COPY . .
EXPOSE 3006
CMD ["npm", "run"]
RUN npm run build
# 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: .
dockerfile: Dockerfile
ports:
- "3006:3006"
command: "npm start"
- "3000:3000"

18747
package-lock.json generated

File diff suppressed because it is too large Load diff