Updated readme and Dockerfile to use .env instead of .env-example
This commit is contained in:
parent
32a496599f
commit
19532433b5
2 changed files with 14 additions and 2 deletions
12
README.md
12
README.md
|
@ -5,3 +5,15 @@
|
|||
- [ ] working template
|
||||
- [ ] overwrites of default styles with css `!important` for round profile-pic etc.
|
||||
- [ ] 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.
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue