-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GeoLite2 cache dir in Dockerfile
- Loading branch information
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ MAINTAINER Candid Dauth <[email protected]> | |
|
||
CMD yarn run server | ||
EXPOSE 8080 | ||
ENV CACHE_DIR=/opt/facilmap/cache | ||
|
||
RUN apk add --no-cache yarn | ||
|
||
|
@@ -21,6 +22,6 @@ RUN cd .. && yarn install | |
RUN cd .. && yarn run build | ||
|
||
USER root | ||
RUN chown -R root:root /opt/facilmap && mkdir -p /opt/facilmap/server/node_modules/.cache && chown -R facilmap:facilmap /opt/facilmap/server/node_modules/.cache | ||
RUN chown -R root:root /opt/facilmap && mkdir -p "$CACHE_DIR" && chown -R facilmap:facilmap "$CACHE_DIR" | ||
|
||
USER facilmap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters