mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
16 lines
393 B
Docker
16 lines
393 B
Docker
FROM node:16 as build
|
|
WORKDIR /build/
|
|
COPY package.json yarn.lock .yarnrc.yml ./
|
|
COPY .yarn ./.yarn
|
|
RUN yarn install --immutable
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
FROM node:16 as prod
|
|
WORKDIR /app/
|
|
COPY --from=build /build/package.json /build/yarn.lock /build/.yarnrc.yml ./
|
|
COPY --from=build /build/.yarn ./.yarn
|
|
COPY --from=build /build/dist ./dist
|
|
RUN yarn install --immutable
|
|
CMD ["yarn", "start"]
|