mirror of
https://github.com/rommapp/romm.git
synced 2026-03-03 02:27:00 +00:00
Updates for dockerfile
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -36,5 +36,5 @@ __pycache__
|
||||
# database
|
||||
mariadb
|
||||
|
||||
# config
|
||||
config.yml
|
||||
# virtualenv
|
||||
.venv
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: '3'
|
||||
version: 3
|
||||
services:
|
||||
mariadb:
|
||||
image: lscr.io/linuxserver/mariadb:latest
|
||||
|
||||
@@ -8,4 +8,7 @@ venv/
|
||||
__pycache__/
|
||||
|
||||
**/assets/library
|
||||
../frontend/assets/library/
|
||||
../frontend/assets/library/
|
||||
|
||||
**/.env
|
||||
.env
|
||||
|
||||
@@ -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/* /
|
||||
|
||||
Reference in New Issue
Block a user