mirror of
https://github.com/TxtDot/webder.git
synced 2024-11-05 21:24:00 +03:00
13 lines
241 B
Text
13 lines
241 B
Text
|
FROM node:18-alpine as build
|
||
|
WORKDIR /app
|
||
|
COPY . .
|
||
|
RUN npm install
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM node:18-alpine as run
|
||
|
WORKDIR /app
|
||
|
COPY --from=build /app/dist/ /app/package*.json ./
|
||
|
RUN npm install --omit=dev
|
||
|
CMD npm run start:docker
|
||
|
EXPOSE 8080
|