16 lines
310 B
Docker
16 lines
310 B
Docker
FROM node:alpine as builder
|
|
WORKDIR '/app'
|
|
COPY ./package.json ./
|
|
RUN yarn
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
FROM nginx:alpine
|
|
LABEL maintainer="Kevin Reis <contact@humenius.me>"
|
|
|
|
COPY --from=builder /app/build /usr/share/nginx/html
|
|
COPY nginx/nginx.conf /etc/nginx/conf.d
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|