mirror of
https://github.com/jillesca/pyats_server.git
synced 2026-11-18 18:04:21 +00:00
17 lines
338 B
Docker
17 lines
338 B
Docker
FROM python:3.9-slim
|
|
|
|
ARG PYATS_SERVER_PORT=57000
|
|
|
|
ENV PYATS_SERVER_PORT=${PYATS_SERVER_PORT}
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y openssh-server \
|
|
&& pip install --upgrade pip \
|
|
&& pip install -r requirements.txt
|
|
|
|
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port ${PYATS_SERVER_PORT}"]
|