mirror of
https://github.com/Kizuren/SauceKudasai.git
synced 2025-12-21 21:16:15 +01:00
Updated docker files and package-lock.json
This commit is contained in:
parent
880a5e58cc
commit
27248c7c86
3 changed files with 737 additions and 18031 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue