Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Build step
- FROM node:12.8 as build
- WORKDIR /app
- COPY ./priv/admin .
- RUN npm install
- RUN npm run-script build --frozen-lockfile --non-interactive
- # Release step
- FROM nginx:1.17.2-alpine
- COPY ./priv/admin/nginx/default.conf /etc/nginx/conf.d/default.conf
- COPY --from=build /app/build /usr/share/nginx/html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement