Skip to content

Commit

Permalink
Update Dockerfile (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: semen603089 <[email protected]>
  • Loading branch information
dyakovri and grigoriev-semyon authored Apr 15, 2023
1 parent 62cb112 commit 8021489
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
ARG APP_VERSION=dev
ENV APP_VERSION=${APP_VERSION}
ENV APP_NAME=file_converter
ENV APP_MODULE=${APP_NAME}.routes.base:app

COPY ./requirements.txt /app/
RUN pip install -U -r /app/requirements.txt

COPY ./static /app/static/
COPY ./logging_prod.conf /app/
COPY ./logging_test.conf /app/

RUN pip install -U -r /app/requirements.txt

COPY ./static /app/static/
COPY ./${APP_NAME} /app/${APP_NAME}

RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion file_converter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os


__version__ = os.getenv('APP_VERSION', 'dev')
__version__ = os.getenv('APP_VERSION', 'dev')
2 changes: 1 addition & 1 deletion file_converter/routes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from fastapi.staticfiles import StaticFiles
from httpx import Response
from starlette import status
from file_converter import __version__
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
from starlette.types import ASGIApp

from file_converter import __version__
from file_converter.routes.file import router as converter_router

from ..settings import Settings
Expand Down

0 comments on commit 8021489

Please sign in to comment.