broken Dockerfile again
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,14 +1,16 @@
|
||||
FROM debian
|
||||
RUN mkdir /srv/app
|
||||
RUN mkdir /srv/venv
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y default-libmysqlclient-dev gcc
|
||||
RUN apt-get install -y postgresql postgresql-contrib libpq-dev python-psycopg2
|
||||
RUN apt-get update && apt-get install \
|
||||
-y --no-install-recommends python3 python3-virtualenv python3-dev
|
||||
RUN apt-get update && apt-get install libssl-dev
|
||||
RUN python3 -m virtualenv --python=/usr/bin/python3 /opt/venv
|
||||
COPY ./requirements.txt /usr/src/app/
|
||||
WORKDIR /usr/src/app/
|
||||
RUN . /opt/venv/bin/activate && pip install -r requirements.txt
|
||||
RUN python3 -m virtualenv --python=/srv/venv/
|
||||
COPY ./requirements.txt /srv/app/
|
||||
WORKDIR /srv/app/
|
||||
RUN . /srv/venv/bin/activate && pip install -r requirements.txt
|
||||
COPY . .
|
||||
EXPOSE 8000
|
||||
CMD ["python", "./manage.py", "runserver"]
|
||||
CMD ["init.sh"]
|
||||
|
||||
Reference in New Issue
Block a user