fixed docker dev env

This commit is contained in:
Jfriedli 2021-03-18 16:13:00 +01:00
parent 312f4d6e83
commit 9b8a65e10c
3 changed files with 14 additions and 0 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
uploads
node_modules
static/dist
static/.webassets-cache
*.js
*.json
*.md

View File

@ -34,6 +34,10 @@ bandit:
tests:debian:
stage: test
before_script:
- apt update
- apt install nodejs npm
- npm install --global postcss
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage python3-pip python3-setuptools

View File

@ -9,7 +9,10 @@ RUN apt-get update \
gir1.2-gdkpixbuf-2.0 \
libimage-exiftool-perl \
libgirepository1.0-dev \
nodejs npm \
&& pip install -r requirements.txt \
&& npm i \
&& npm install --global postcss postcss-cli \
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*
CMD flask run --host=0.0.0.0