change default working directory to /etc
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user