Commit dfda5d22 by François C.

Merge branch 'fix-for-windows' into 'dev_principale'

Fix: update dev environment on docker for windows

See merge request cooperatic-foodcoops/third-party!20
parents 6dec59be 400063c7
# 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