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:
10
Dockerfile
10
Dockerfile
@ -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"]
|
||||
|
Reference in New Issue
Block a user