1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Docker instruction before Docker compose

This commit is contained in:
Alexandre Iooss
2020-09-01 14:03:06 +02:00
parent bf7b187048
commit 55be6be6c5
2 changed files with 37 additions and 23 deletions

View File

@ -15,12 +15,12 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
# Instal PyPI requirements
COPY requirements.txt /code/
RUN pip3 install -r /code/requirements.txt --no-cache-dir
COPY requirements.txt /var/www/note_kfet/
RUN pip3 install -r /var/www/note_kfet/requirements.txt --no-cache-dir
# Copy code
WORKDIR /code
COPY . /code/
WORKDIR /var/www/note_kfet
COPY . /var/www/note_kfet/
EXPOSE 8080
ENTRYPOINT ["/code/entrypoint.sh"]
ENTRYPOINT ["/var/www/note_kfet/entrypoint.sh"]