Merge pull request #13 from freqtrade/dockerfile

Dockerfile
This commit is contained in:
Matthias 2020-07-16 07:18:33 +02:00 committed by GitHub
commit 07b4a5b11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 1 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules/*

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM node:14.2.0-alpine as ui-builder
RUN mkdir /app
WORKDIR /app
# ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /app/package.json
RUN yarn
RUN yarn global add @vue/cli
COPY . /app
RUN yarn build
FROM nginx:alpine
COPY --from=ui-builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@ -4,7 +4,7 @@ Freqtrade UI build with [Vue.js](https://vuejs.org/) and [boostrap-vue](https://
## WARNING
This project is still in it's early stages, and is not yet stable nor recommended to be used for productiion usages.
This project is still in it's early stages (consider it early-alpha), and is not yet stable nor recommended to be used for production usages.
It will require Freqtrade to be running on the same host with the API enabled under (`localhost:8081`). This port can be changed in `vue.config.js`.
@ -34,6 +34,16 @@ yarn build
yarn lint
```
### Build and run docker version
```
docker-compose build
docker-compose up -d
# Access using http://localhost:8080/
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
---
version: '3.8'
services:
frequi:
build:
context: .
dockerfile: "./Dockerfile"
image: frequi
# image: freqtradeorg/frequi:master
restart: unless-stopped
ports:
- "8080:80"