Fix GeoLite2 cache dir in Dockerfile

pull/256/head
Candid Dauth 2023-11-16 20:51:41 +01:00
rodzic 409eb86f4d
commit 92b54d3b72
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -3,6 +3,7 @@ MAINTAINER Candid Dauth <cdauth@cdauth.eu>
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

Wyświetl plik

@ -16,7 +16,7 @@ A bundled version of the FacilMap server is published on NPM as [facilmap-server
3. Create a `config.env` file based on [`config.env.example`](https://github.com/FacilMap/facilmap/blob/main/config.env.example) and to adjust the [configuration](./config.md).
4. Start the FacilMap server by running `~/.local/bin/facilmap-server dotenv_config_path=config.env`.
FacilMap will need write access to the directory `~/.local/lib/node_modules/.cache/facilmap-server`. All other files and directories can be read-only. To harden the FacilMap installation, make the whole installation folder owned by root, but create the cache directory and make it owned by the facilmap user.
FacilMap will need write access to the directory `~/.local/lib/node_modules/.cache/facilmap-server` (or specify another directory in the `CACHE_DIR` environment variable). All other files and directories can be read-only. To harden the FacilMap installation, make the whole installation folder owned by root, but create the cache directory and make it owned by the facilmap user.
## Run the development version