From 19532433b51d496ab9ef5e0a2e4f53d42d0c5be2 Mon Sep 17 00:00:00 2001 From: nikurasu Date: Fri, 11 Nov 2022 08:01:45 +0100 Subject: [PATCH] Updated readme and Dockerfile to use .env instead of .env-example --- README.md | 14 +++++++++++++- dev/docker/images/main/Dockerfile | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1c110b..ce86973 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,16 @@ ## TODO: - [ ] working template - [ ] overwrites of default styles with css `!important` for round profile-pic etc. -- [ ] more styles \ No newline at end of file +- [ ] more styles +- [X] Dockerize + +## Setup +A up to date docker image is provided at my gitea, but you can also build it yourself. + +### Build +1. Clone the repository `git clone https://git.oishi-ra.men/Nikurasu/socialtree-js.git` +2. Copy .env.example to .env and edit it to your needs +3. Build the image. For unix like systems I provide a bash script in `dev/shell/docker-prod.sh`. I hated the hassle to type the full command every time ;) + +### Deploy +Done with docker-compose. Use the file at `dev/docker/stacks/main/compose.yml` and edit it to your needs. \ No newline at end of file diff --git a/dev/docker/images/main/Dockerfile b/dev/docker/images/main/Dockerfile index 8a887de..6e2435c 100644 --- a/dev/docker/images/main/Dockerfile +++ b/dev/docker/images/main/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY src/ ./src COPY package.json ./ COPY yarn.lock ./ -COPY .env.example ./.env +COPY .env ./.env COPY assets /assets COPY dev/shell/entrypoint.sh /entrypoint.sh RUN yarn && yarn clean && yarn build-prod