Created
October 12, 2022 21:45
Revisions
-
d-exclaimation created this gist
Oct 12, 2022 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ FROM node:18-alpine as builder WORKDIR /build COPY . . RUN yarn install RUN rm -rf dist/ RUN tsc FROM node:18-alpine WORKDIR /app COPY package*.json ./ COPY yarn.lock ./ COPY --from=builder ./build/dist ./dist RUN yarn install --production CMD yarn start