Unverified Commit 400063c7 by Ivanis Kouamé Committed by Paul B

Update docker for windows

parent 6dec59be
Pipeline #1006 passed with stage
in 21 seconds
# Scripts
*.sh text eol=lf
\ No newline at end of file
......@@ -15,3 +15,4 @@ db.sqlite3
.gitlab-ci.yml
shop/shop_admin_settings.json
shop/errors.log
.idea
FROM python:3-slim
FROM python:3
ENV PYTHONUNBUFFERED=1
# Add french locale
RUN apt update && \
......@@ -7,19 +9,16 @@ RUN apt update && \
sed -i '/^#.* fr_FR.UTF-8 /s/^#//' /etc/locale.gen && \
locale-gen
# Virtual env:
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
WORKDIR /home/app
# Install dependencies:
RUN pip install --upgrade pip
COPY requirements.txt /home/app/
RUN pip install -r requirements.txt
# Setup volume to be able to dev application locally
VOLUME /home/app
COPY . /home/app
# Run the application:
EXPOSE 8080
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment