Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Khodak committed Oct 18, 2018
1 parent 0e8ae95 commit 906fa8a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
2018_paper_materials
rjacks
results
server/redis-stable
server/k8s
.gitignore
server/Dockerfile
16 changes: 11 additions & 5 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM tiangolo/uwsgi-nginx-flask:python3.6

COPY ./app /app
COPY reference_grna_efficacies /app/
COPY jacks /app/jacks

RUN cd jacks && pip install . && \
pip install -r server/requirements.txt
RUN pip install --upgrade pip && pip install -r /app/requirements.txt
RUN pip install --upgrade pip
RUN cd /app/jacks && pip install .

COPY server /app/server
RUN pip install -r /app/server/requirements.txt

ENV LISTEN_PORT 8005
ENV PYTHONPATH=/
ENV PYTHONPATH="/app/jacks:/app/server"
ENV FLASK_DEBUG 1
ENV UWSGI_INI /app/server/uwsgi.ini
ENV STATIC_PATH /app/server/static
WORKDIR /app/server

EXPOSE 8005
3 changes: 3 additions & 0 deletions server/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[uwsgi]
module = app
callable = app

0 comments on commit 906fa8a

Please sign in to comment.