diff options
| author | seth <[email protected]> | 2023-01-10 16:01:39 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-10 16:01:39 -0500 |
| commit | 25b9c9c879bb1add9a61c0e2842bf74d043c8e96 (patch) | |
| tree | 372433eb59fe15cc592c27c7cdd0e5e9a64047ea /Dockerfile | |
| parent | e78bab80c216faa715cafa19ba36cd76fe6e22ac (diff) | |
chore: improve dockerfile
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,10 +1,11 @@ FROM python:3.11 WORKDIR /code -ARG FLIT_ROOT_INSTALL=1 -RUN pip install flit -COPY . /code/ -RUN flit install +COPY ./requirements.txt /code/requirements.txt -CMD [ "uvicorn", "src.guzzle_api.api:app", "--host", "0.0.0.0", "--port", "7070"] +RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt + +COPY ./src/guzzle_api /code/guzzle_api + +CMD [ "uvicorn", "guzzle_api.api:app", "--host", "0.0.0.0", "--port", "80"] |
