Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM python:3.11

WORKDIR /
WORKDIR /api

COPY ./api/requirements.txt /requirements.txt
COPY ./api/requirements.txt /api/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /requirements.txt
RUN pip install --no-cache-dir --upgrade -r /api/requirements.txt

# conditional copying of .env to bypass needing 2 Dockerfiles right now
COPY ./api/main.py ./api/utils.py ./api/mail_services.py ./api/google_routes_services.py ./api/.en[v] ./api/google_sheets_sa_key.jso[n] /
# Copy individual files and directories
COPY ./api/main.py ./api/utils.py /api/
COPY ./api/services/mail.py ./api/services/google_routes.py /api/services/
COPY ./api/manufacturers/basic.py ./api/manufacturers/brighter_bins.py ./api/manufacturers/tekelek.py /api/manufacturers/
COPY ./api/.en[v] ./api/google_sheets_sa_key.jso[n] /api/

EXPOSE 8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
Expand Down
Loading