-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 880 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.10-bookworm
ENV PYTHONPATH=/src
# Create a directory for logs
RUN mkdir -p /var/log/interp
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
COPY requirements.txt .
COPY google-services.json .
COPY .env .
COPY ./src ./src
RUN pip install -r requirements.txt
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]
###################################
# Running locally:
###################################
# docker container rm tsc-local && docker image rm tsi-local && docker build -t tsi-local . && docker run -it -p 8080:8080 --name tsc-local tsi-local
###################################
# Pushing to GCP Artifact Registry:
###################################
# docker build --platform linux/amd64,linux/arm64 -t tsi .
# docker tag tsi us-west2-docker.pkg.dev/omega-dahlia-394021/tsi/backend-image
# docker push us-west2-docker.pkg.dev/omega-dahlia-394021/tsi/backend-image