kopia lustrzana https://github.com/badgen/badgen.net
Add Dockerfile
rodzic
cf6a5bfb7c
commit
c5c6363ac1
|
@ -0,0 +1,4 @@
|
|||
.next
|
||||
.github
|
||||
node_modules
|
||||
dist
|
|
@ -0,0 +1,14 @@
|
|||
FROM node:alpine AS build
|
||||
WORKDIR /
|
||||
COPY . .
|
||||
RUN npm ci && npm run build
|
||||
|
||||
FROM node:alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /dist .
|
||||
ENTRYPOINT node /app/index.js
|
||||
|
||||
COPY package* ./
|
||||
RUN npm ci --only=production
|
||||
|
||||
EXPOSE 3000
|
Ładowanie…
Reference in New Issue