change default working directory to /etc

This commit is contained in:
lovasoa
2023-10-03 13:07:41 +02:00
parent 94758eb194
commit a499d9671c
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ FROM busybox:glibc
RUN addgroup --system sqlpage && \
adduser --system --no-create-home --ingroup sqlpage sqlpage
ENV SQLPAGE_ROOT=/var/www
WORKDIR /etc/sqlpage
WORKDIR /etc
COPY --from=builder /usr/src/sqlpage/sqlpage.bin /usr/local/bin/sqlpage
COPY --from=builder /usr/src/sqlpage/libgcc_s.so.1 /lib/libgcc_s.so.1
USER sqlpage
+3
View File
@@ -125,6 +125,9 @@ To run on a server, you can use [the docker image](https://hub.docker.com/r/lova
- (`"$(pwd):/var/www"` allows sqlpage to run sql files from your current working directory)
- Create a file called index.sql with the contents from [this example](./index.sql)
- Open https://localhost:8080 in your browser
- Optionally, you can also mount a directory containing sqlpage's configuration file,
custom components, and migrations
(see [configuration.md](./configuration.md)) to `/etc/sqlpage` in the container.
### On Mac OS, with homebrew