Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
FROM python:3.6-alpine as builder
COPY . /code
WORKDIR /code
RUN python setup.py sdist
FROM python:3.6
RUN apt-get -y update && \
apt-get -y dist-upgrade && \
apt-get -y install python-dev libpq-dev postgresql postgresql-contrib
COPY --from=builder /code/dist/* /regi.tar.gz
RUN pip install /regi.tar.gz[uwsgi,psycopg2]
COPY ./regi /app
WORKDIR /app
EXPOSE 8000
CMD ["uwsgi", "uwsgi.ini"]