2021-10-28 23:25:32 +05:30
|
|
|
FROM node:lts-alpine AS build
|
2021-08-03 23:34:52 +05:30
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2022-02-23 18:26:43 +05:30
|
|
|
RUN --mount=type=cache,target=/root/.cache/yarn \
|
|
|
|
--mount=type=cache,target=/app/node_modules \
|
2022-12-10 10:42:57 +05:30
|
|
|
pkg add curl && \
|
2022-02-23 18:26:43 +05:30
|
|
|
yarn install --prefer-offline && \
|
2022-12-10 10:42:57 +05:30
|
|
|
yarn build && ./localizefonts.sh
|
2021-08-03 23:34:52 +05:30
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
|
|
|
|
COPY --from=build /app/dist/ /usr/share/nginx/html/
|
2021-08-20 21:40:37 +05:30
|
|
|
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
2021-08-03 23:34:52 +05:30
|
|
|
|
|
|
|
EXPOSE 80
|