Piped/Dockerfile

19 lines
345 B
Docker
Raw Normal View History

2021-10-28 17:55:32 +00:00
FROM node:lts-alpine AS build
2021-08-03 18:04:52 +00:00
WORKDIR /app/
COPY package.json yarn.lock ./
RUN yarn install --prefer-offline
COPY . .
2021-12-28 18:56:28 +00:00
RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css
2021-08-03 18:04:52 +00:00
FROM nginx:alpine
COPY --from=build /app/dist/ /usr/share/nginx/html/
2021-08-20 16:10:37 +00:00
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
2021-08-03 18:04:52 +00:00
EXPOSE 80