mirror of
https://github.com/rajnandan1/kener.git
synced 2026-08-07 07:14:56 +00:00
fix(docker): updated docs to make it work using docker
This commit is contained in:
+3
-1
@@ -13,4 +13,6 @@ config/site.yaml
|
||||
vite.config.js.timestamp-*
|
||||
vite.config.ts.timestamp-*
|
||||
nodemon.json
|
||||
.okgit/
|
||||
.okgit/
|
||||
config/static/*
|
||||
!config/static/.kener
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
I am Empty 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user