mirror of
https://github.com/fergalmoran/bitchmin.git
synced 2025-12-22 09:27:53 +00:00
25 lines
506 B
Docker
25 lines
506 B
Docker
FROM python:3.8-alpine
|
|
|
|
COPY ./requirements.txt /requirements.txt
|
|
|
|
RUN apk update \
|
|
&& apk add --virtual build-deps gcc python3-dev musl-dev \
|
|
&& apk add postgresql-dev \
|
|
&& pip install -r requirements.txt \
|
|
&& pip install gunicorn \
|
|
&& apk del build-deps
|
|
|
|
COPY app /app
|
|
COPY .env /
|
|
COPY migrations /migrations
|
|
COPY server.py boot.sh ./
|
|
RUN chmod +x boot.sh
|
|
|
|
ENV FLASK_ENV production
|
|
ENV FLASK_APP server.py
|
|
|
|
#RUN chown -R bitchmin:bitchmin ./
|
|
#USER bitchmin
|
|
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["./boot.sh"] |