Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Update Dockerfile with changes from Magdalena Sarabia Barquero
  • Loading branch information
alvp authored Apr 27, 2022
1 parent 15ad7dd commit 1d1368c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ RUN yarn build:docker

# production environment
FROM nginx:stable-alpine
ENV API_HOST postdata.uned.es
ENV API_PORT 5000
ENV API_HOST evi.linhd.uned.es
ENV API_PORT 5004
ENV REACT_APP_API_ROOT http://evi.linhd.uned.es:5004
COPY --from=build /app/build /usr/share/nginx/html
COPY ./docker/nginx-default.conf.template /etc/nginx/conf.d/default.conf.template
COPY ./docker/entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 80
EXPOSE 8081
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 1d1368c

Please sign in to comment.