mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-16 23:09:03 +00:00
20 lines
273 B
Text
20 lines
273 B
Text
|
# Site Build
|
||
|
FROM node:lts-slim as build
|
||
|
|
||
|
ENV NODE_ENV production
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY . /app
|
||
|
|
||
|
RUN npm ci --production
|
||
|
|
||
|
RUN npm run build
|
||
|
|
||
|
# Production run
|
||
|
FROM nginx:stable-alpine
|
||
|
|
||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||
|
|
||
|
COPY --from=build /app/public/ /usr/share/nginx/html
|