fix(docker): updated docs to make it work using docker

This commit is contained in:
Raj Nandan Sharma
2024-04-22 21:53:08 +05:30
parent 68ca90e52e
commit 3c91ff2860
4 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -13,4 +13,6 @@ config/site.yaml
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
nodemon.json
.okgit/
.okgit/
config/static/*
!config/static/.kener
-2
View File
@@ -55,8 +55,6 @@ COPY --chown=abc:abc src/lib/helpers.js /app/src/lib/helpers.js
COPY --from=build --chown=abc:abc /app/build /app/build
COPY --from=build --chown=abc:abc /app/prod.js /app/prod.js
# Copy the config/static folder from the build stage to the app stage
COPY --from=build --chown=abc:abc $CONFIG_DIR/static $CONFIG_DIR/static
ENV NODE_ENV=production
+1
View File
@@ -0,0 +1 @@
I am Empty File
+2
View File
@@ -124,6 +124,8 @@ ghcr.io/rajnandan1/kener:latest
You should mount a host directory to persist your configuration and expose the web port. Environmental variables [found above](#environment-variable) can be passed with `-e` An example `docker run` command:
Make sure you have a `/static` folder inside your config folder
```shell
docker run -d -v /path/on/host/config:/config -p 3000:3000 -e "GH_TOKEN=1234" rajnandan1/kener
```