Skip to content

Commit 3223929

Browse files
committed
change default working directory to /etc
1 parent 632e856 commit 3223929

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ FROM busybox:glibc
3333
RUN addgroup --system sqlpage && \
3434
adduser --system --no-create-home --ingroup sqlpage sqlpage
3535
ENV SQLPAGE_ROOT=/var/www
36-
WORKDIR /etc/sqlpage
36+
WORKDIR /etc
3737
COPY --from=builder /usr/src/sqlpage/sqlpage.bin /usr/local/bin/sqlpage
3838
COPY --from=builder /usr/src/sqlpage/libgcc_s.so.1 /lib/libgcc_s.so.1
3939
USER sqlpage

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ To run on a server, you can use [the docker image](https://hub.docker.com/r/lova
125125
- (`"$(pwd):/var/www"` allows sqlpage to run sql files from your current working directory)
126126
- Create a file called index.sql with the contents from [this example](./index.sql)
127127
- Open https://localhost:8080 in your browser
128+
- Optionally, you can also mount a directory containing sqlpage's configuration file,
129+
custom components, and migrations
130+
(see [configuration.md](./configuration.md)) to `/etc/sqlpage` in the container.
128131

129132
### On Mac OS, with homebrew
130133

0 commit comments

Comments
 (0)