Updates for dockerfile

This commit is contained in:
Georges-Antoine Assi
2023-05-09 10:58:51 -04:00
parent deab5f0504
commit c402f5f194
5 changed files with 12 additions and 8 deletions

4
.gitignore vendored
View File

@@ -36,5 +36,5 @@ __pycache__
# database
mariadb
# config
config.yml
# virtualenv
.venv

View File

@@ -1,6 +1,6 @@
## Setting up the backend
### Copy envs.template to envs.env and fill the variables
### Copy env.template to .env and fill the variables
```sh
cp env.template .env

View File

@@ -1,4 +1,4 @@
version: '3'
version: 3
services:
mariadb:
image: lscr.io/linuxserver/mariadb:latest

View File

@@ -8,4 +8,7 @@ venv/
__pycache__/
**/assets/library
../frontend/assets/library/
../frontend/assets/library/
**/.env
.env

View File

@@ -28,10 +28,11 @@ RUN apt update && \
apt autoremove && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
WORKDIR /back
COPY ./backend/requirements.txt ./requirements.txt
RUN pip install --no-cache --upgrade pip && \
pip install --no-cache --upgrade -r requirements.txt
COPY ./backend/src .
pip install --no-cache poetry && \
poetry config virtualenvs.create false && \
poetry install --no-dev --no-interaction --no-ansi
COPY ./backend .
# setup init script and config files
COPY ./docker/init_scripts/* /