Dockerfile 279 Bytes
Newer Older
JackV's avatar
JackV committed
1
2
FROM alpine:latest

3
COPY . /uus
JackV's avatar
JackV committed
4

5
6
RUN apk add -U python3 py3-gunicorn && \
    pip3 install /uus && \
7
8
    rm -Rf /uus && \
    ln -s "$(which flask)" /usr/bin/uus
JackV's avatar
JackV committed
9

10
ENV FLASK_APP=uus
JackV's avatar
JackV committed
11

JackV's avatar
JackV committed
12
13
COPY uus.py /uus
COPY admin /uus/admin
14

JackV's avatar
JackV committed
15
16
17
EXPOSE 8000

ENTRYPOINT gunicorn -b 0.0.0.0 -w 4 uus:app