From a499d9671c8687985c75808d35f94cd42d2e0693 Mon Sep 17 00:00:00 2001 From: lovasoa Date: Tue, 3 Oct 2023 13:07:41 +0200 Subject: [PATCH] change default working directory to /etc --- Dockerfile | 2 +- README.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 06dc4b74..63246c3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 1ce449e8..d2e77910 100644 --- a/README.md +++ b/README.md @@ -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