Repo for ping machine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
478 B

FROM python:3.9.15-alpine3.16
RUN apk update \
&& apk upgrade \
&& apk add --virtual build-deps gcc python3-dev musl-dev
RUN python3 -m ensurepip && pip3 install --upgrade pip setuptools wheel
WORKDIR /opt/ping_engine
COPY ./requirements.txt /tmp/
# COPY ping_engine.py /opt/ping_engine
RUN pip3 install -r /tmp/requirements.txt
RUN apk del build-deps
EXPOSE 5000
ENV PYTHONUNBUFFERED 1
ENV TOKEN="123abc"
CMD flask --app ping_engine --debug run --host=0.0.0.0