mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-10 16:28:00 -05:00
Update Dockerfile_backend
This commit is contained in:
committed by
GitHub
parent
bb97c4e020
commit
f22b75324e
@@ -6,14 +6,16 @@ LABEL org.opencontainers.image.source https://github.com/joaovitoriasilva/geargu
|
||||
# Set the working directory
|
||||
WORKDIR /code
|
||||
|
||||
# Install pkg-config
|
||||
#RUN apt-get update && apt-get install -y pkg-config python3-dev default-libmysqlclient-dev build-essential
|
||||
|
||||
# Copy the requirements.txt file to /app
|
||||
COPY ./requirements.txt /code/requirements.txt
|
||||
|
||||
# Install any needed packages specified in requirements.txt
|
||||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||
# Install any needed packages specified in requirements.txt and then remove requirements.txt file
|
||||
# Remove any temporary files or directories created during the build process
|
||||
# Cache Cleanup
|
||||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt \
|
||||
&& rm /code/requirements.txt \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy the directory backend contents to /app
|
||||
COPY ./backend /code/backend
|
||||
@@ -34,4 +36,4 @@ ENV JAEGER_HOST=""
|
||||
ENV STRAVA_DAYS_ACTIVITIES_ONLINK=30
|
||||
|
||||
# Run app.py when the container launches
|
||||
CMD ["uvicorn", "backend.main:backend", "--host", "0.0.0.0", "--port", "80"]
|
||||
CMD ["uvicorn", "app.main:backend", "--host", "0.0.0.0", "--port", "80"]
|
||||
|
||||
Reference in New Issue
Block a user