1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00
smov/dockerfile

19 lines
417 B
Text
Raw Normal View History

2022-05-03 20:58:19 +02:00
FROM node:16.15-alpine as build
2022-05-03 18:21:11 +02:00
WORKDIR /app
2023-09-01 15:27:55 +02:00
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
2022-05-03 18:21:11 +02:00
COPY . ./
2023-09-01 15:27:55 +02:00
RUN pnpm run build
2022-05-03 18:21:11 +02:00
# production environment
FROM nginx:stable-alpine
COPY --from=build /app/dist /usr/share/nginx/html
2022-05-03 18:21:11 +02:00
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]