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
|
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"]
|
||||||
|
|
@ -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
18747
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue