Merge branch 'dev' into rrt/testing
This commit is contained in:
commit
29b1d43006
34
Dockerfile
34
Dockerfile
|
@ -1,27 +1,23 @@
|
||||||
FROM python:3.7
|
FROM python:3.7-slim
|
||||||
|
|
||||||
ENV PATH=/root/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
WORKDIR /app
|
||||||
|
|
||||||
# install node and yarn
|
COPY Pipfile Pipfile.lock /app/
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get -y install postgresql-client
|
|
||||||
|
|
||||||
# config project dir
|
RUN pip install pipenv && \
|
||||||
RUN mkdir /crc-workflow
|
apt-get update && \
|
||||||
WORKDIR /crc-workflow
|
apt-get install -y --no-install-recommends \
|
||||||
|
gcc python3-dev libssl-dev postgresql-client git-core && \
|
||||||
|
pipenv install --dev && \
|
||||||
|
apt-get remove -y gcc python3-dev libssl-dev && \
|
||||||
|
apt-get purge -y --auto-remove && \
|
||||||
|
rm -rf /var/lib/apt/lists/ *
|
||||||
|
|
||||||
# install python requirements
|
COPY . /app/
|
||||||
RUN pip install pipenv
|
|
||||||
ADD Pipfile /crc-workflow/
|
|
||||||
ADD Pipfile.lock /crc-workflow/
|
|
||||||
RUN pipenv install --dev
|
|
||||||
|
|
||||||
# include rejoiner code (gets overriden by local changes)
|
ENV FLASK_APP=/app/crc/__init__.py
|
||||||
COPY . /crc-workflow/
|
CMD ["pipenv", "run", "flask", "db", "upgrade"]
|
||||||
|
CMD ["pipenv", "run", "python", "/app/run.py"]
|
||||||
# run webserver by default
|
|
||||||
ENV FLASK_APP=./crc/__init__.py
|
|
||||||
CMD ["pipenv", "run", "python", "./run.py"]
|
|
||||||
|
|
||||||
# expose ports
|
# expose ports
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
Loading…
Reference in New Issue