Commit 1907afd3 authored by Thanasis Katsadas's avatar Thanasis Katsadas

Make Dockerfile production grade

parent 3e72a42d
Pipeline #15730 passed with stages
in 4 minutes
FROM node:lts
FROM node:lts AS builder-ui
RUN mkdir /srv/code
......@@ -6,15 +6,10 @@ COPY . /srv/code
WORKDIR /srv/code
RUN yarn global add serve
RUN yarn install
RUN yarn parse
RUN yarn glossary
RUN yarn build
WORKDIR /srv/code/build
CMD serve
EXPOSE 5000
FROM nginx:1.17.5
COPY --from=builder-ui /srv/code/build /usr/share/nginx/html
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