Commit af299339 authored by Daniel Dehennin's avatar Daniel Dehennin
Browse files

feat(docker): build nginx static container

We are currently limited to node <= 12 because of dependencies.

* Dockerfile: use a multi-stage build process.
parent 24575d8f
FROM hub.eole.education/proxyhub/library/node:12-alpine AS build
ARG NODE_ENV=production
RUN mkdir /src
COPY . /src
WORKDIR /src
RUN yarn install
RUN yarn generate
FROM hub.eole.education/proxyhub/library/nginx:alpine
COPY --from=build /src/public /usr/share/nginx/html
VOLUME /usr/share/nginx/html
VOLUME /etc/nginx
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment