Merge pull request #17 from Cameri/feature/add-dockerfile

This commit is contained in:
fiatjaf 2022-01-22 14:48:41 -03:00 committed by GitHub
commit 4517456bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules/

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:12.22.1 as build
WORKDIR /app/build
COPY . /app/build
RUN yarn \
&& npx quasar build
FROM nginx as nginx-branle
COPY ./nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build/dist/spa /app

View File

@ -24,6 +24,18 @@ yarn run lint
quasar build
```
## Docker
### Build the docker image
```bash
docker build -t branle .
```
### Run the container
```bash
docker run -d -p 8080:80 --name branle branle
```
### Customize the brand
Edit `customize.json` and replace the colors, icon, name and dark mode setting.
When setting the dark mode, you can also set the colors `"dark-page"` and `"dark"`.

View File

@ -0,0 +1,9 @@
server {
listen 80;
root /app;
location / {
index index.html;
try_files $uri $uri/ /index.html;
}
}