Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the build section in Dockerfile #8

Merged
merged 2 commits into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[Github-38](https://github.com/geostreams/geodashboard/issues/38)
- Move BMP to GLTG
[Github-2](https://github.com/geostreams/gltg/issues/2)
- Update the build section in Dockerfile
[GLTG-7](https://github.com/geostreams/gltg/issues/7)

## [3.6.0] - 2020-12-14

Expand Down
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
FROM node:14 as build

ARG GEODASHBOARD_VERSION
ARG GEOSERVER_URL=/geoserver
ARG GEOSTREAMS_URL=/geostreams
ARG BMP_API_URL=/bmp-api

ENV GEOSERVER_URL=$GEOSERVER_URL
ENV GEOSTREAMS_URL=$GEOSTREAMS_URL
ENV BMP_API_URL=$BMP_API_URL

RUN git clone https://github.com/geostreams/geodashboard.git /tmp/geodashboard
WORKDIR /tmp/geodashboard
RUN if [[ -z "${GEODASHBOARD_VERSION}" ]] ; then git switch --detach $GEODASHBOARD_VERSION ; fi
RUN yarn && yarn link:all

COPY ./ /tmp/gltg/
WORKDIR /tmp/gltg/
RUN yarn
RUN yarn link:geostreams
RUN yarn build

FROM nginx:stable-alpine
Expand Down