mirror of
https://github.com/Kizuren/SauceKudasai.git
synced 2025-12-21 13:06:16 +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"]
|
||||
|
|
@ -4,5 +4,4 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3006:3006"
|
||||
command: "npm start"
|
||||
- "3000:3000"
|
||||
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