first commit
This commit is contained in:
32
fast_api/Dockerfile
Executable file
32
fast_api/Dockerfile
Executable file
@@ -0,0 +1,32 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user