mirror of
https://github.com/styppo/hamstr.git
synced 2024-10-18 13:33:22 +00:00
Merge pull request #17 from Cameri/feature/add-dockerfile
This commit is contained in:
commit
4517456bac
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
node_modules/
|
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
|
12
README.md
12
README.md
@ -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"`.
|
||||
|
9
nginx/conf.d/default.conf
Normal file
9
nginx/conf.d/default.conf
Normal file
@ -0,0 +1,9 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /app;
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user