parent
63f795d4c9
commit
7a40953f04
10
Dockerfile
10
Dockerfile
|
@ -1,16 +1,14 @@
|
||||||
FROM node:18.14.2 as builder
|
FROM node:18.14.2
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_OPTIONS=--openssl-legacy-provider
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
FROM node:18.14.2 as run
|
|
||||||
WORKDIR /app
|
|
||||||
COPY package*.json ./
|
|
||||||
COPY --from=builder /app/.output /.output
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
CMD [ "npm", "run", "start" ]
|
CMD [ "npm", "run", "start" ]
|
Loading…
Reference in New Issue