Files
2024-06-25 14:25:29 +09:00

33 lines
1.3 KiB
Docker
Executable File

# ------------------------------------------------------------------------------
# Base image
# ------------------------------------------------------------------------------
FROM python:3.9.7-slim
# ------------------------------------------------------------------------------
# Informations
# ------------------------------------------------------------------------------
LABEL maintainer="hsj100 <hsj100@a2tec.co.kr>"
LABEL title="A2TEC_METAVERSER_MEDICAL_REST"
LABEL description="Rest API Server with Fast API"
# ------------------------------------------------------------------------------
# Source
# ------------------------------------------------------------------------------
COPY ./app /FAST_API/app
# ------------------------------------------------------------------------------
# Install dependencies
# ------------------------------------------------------------------------------
COPY ./requirements.txt /FAST_API/requirements.txt
WORKDIR /FAST_API
RUN apt update > /dev/null && \
apt install -y build-essential && \
pip install --no-cache-dir --upgrade -r /FAST_API/requirements.txt
# ------------------------------------------------------------------------------
# Binary
# ------------------------------------------------------------------------------
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "50210"]