add dockerfile
parent
59e9793eb1
commit
ffa3f859bf
|
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
FROM node:18-alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
RUN npm install --only=production
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
FROM node:18-alpine
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
COPY --from=builder /usr/src/app .
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD [ "node", "app.js" ]
|
||||||
Loading…
Reference in New Issue