-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (30 loc) · 1.19 KB
/
Dockerfile
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
29
30
31
32
33
34
35
#Original base image
#FROM cityofla/ita-data-civis-lab:sha-4888c7e
#new base image from current working image in Prod.
#Allows for no new package install for minor mods of code/data
ARG _DEPLOY_REGION
ARG PROJECT_ID
FROM ${_DEPLOY_REGION}-docker.pkg.dev/${PROJECT_ID}/civis-gcp-transition/civis-gcp-transition-base
#cloud sdk pre-installed on us-west2-docker.pkg.dev/ita-datalake/civis-gcp-transition/kyc-permits-to-esri
#update to current sdk
#RUN rm -Rf /root/google-cloud-sdk
#RUN curl -sSL https://sdk.cloud.google.com |bash
#ENV PATH="/root/google-cloud-sdk/bin:${PATH}"
RUN gcloud components update
# update release info only
#RUN apt-get update --allow-releaseinfo-change && apt-get install -y \
# golang
#RUN apt-get update --allow-releaseinfo-change
WORKDIR /app
COPY ./ ./
#web hook server already built in image
#RUN go build for Google Cloud Run web trigger
#RUN go build -v -o server
COPY conda-requirements.txt /tmp/
RUN conda install --yes -c conda-forge --file /tmp/conda-requirements.txt
COPY requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt
#Setup already run in image
#RUN python setup.py install
#CMD to start Google Cloud Run server for web trigger
CMD ["/app/server"]