-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile_ECS
37 lines (29 loc) · 884 Bytes
/
Dockerfile_ECS
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
36
37
FROM continuumio/miniconda3:23.10.0-1
EXPOSE 80
RUN pip install --upgrade pip==22.0.4
RUN conda clean --all
RUN pip cache purge
WORKDIR /app
COPY ./requirements.txt .
RUN pip install -r requirements.txt
RUN pip cache purge; exit 0
RUN apt-get update && apt-get install -y dos2unix
COPY ./src .
# Set up environment variables
ARG EDS_API_URL
ENV EDS_API_URL=${EDS_API_URL}
ARG EDS_AUTH_URL
ENV EDS_AUTH_URL=${EDS_AUTH_URL}
ARG AWS_ACCESS_KEY_ID
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
ARG AWS_SECRET_ACCESS_KEY
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
ARG INPUT_JSON_PATH
ENV INPUT_JSON_PATH=${INPUT_JSON_PATH}
ARG GATEWAY_STAGE
ENV GATEWAY_STAGE=${GATEWAY_STAGE}
COPY docker-entrypoint.sh /usr/local/bin/
RUN dos2unix /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN chmod 644 api/api.py
ENTRYPOINT ["docker-entrypoint.sh"]