forked from lutris/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
23 lines (18 loc) · 771 Bytes
/
dev.Dockerfile
File metadata and controls
23 lines (18 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
ARG REQ_PATH=./config/requirements
ENV LC_ALL=C.UTF-8
ENV SECRET_KEY="somethissecret"
ENV DB_HOST="lutrisdb"
ENV POSTGRES_HOST="lutrisdb"
ENV POSTGRES_PORT="5430"
ENV DJANGO_SETTINGS_MODULE="lutrisweb.settings.local"
ENV REDIS_HOST='lutriscache'
RUN apt-get update && apt-get install -y sudo build-essential git curl python3 \
python3-pip python3-dev imagemagick libxml2-dev libxslt1-dev libssl-dev libffi-dev \
libpq-dev libxml2-dev libjpeg-dev && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY $REQ_PATH/devel.pip $REQ_PATH/base.pip /app/config/requirements/
WORKDIR /app/config/requirements
RUN pip3 install -r ./devel.pip --exists-action=w
WORKDIR /app
CMD python3 manage.py runserver 0.0.0.0:8000