-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 700 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
FROM ubuntu:20.04
ARG WEATHER_TOKEN
ARG ZIPCODE
ARG PANDA_BEARER_TOKEN
ARG PANDA_APP_KEY
ENV WEATHER_TOKEN ${WEATHER_TOKEN}
ENV ZIPCODE ${ZIPCODE}
ENV PANDA_BEARER_TOKEN ${PANDA_BEARER_TOKEN}
ENV PANDA_APP_KEY ${PANDA_APP_KEY}
WORKDIR /alerts2panda
ADD . /alerts2panda
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-pip build-essential python3-dev libssl-dev libffi-dev jq curl iputils-ping && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
useradd panda && usermod -aG panda panda && \
touch /alerts2panda/.env && \
pip3 install --no-cache-dir -r requirements.txt && \
python3 /alerts2panda/setup.py install
ENTRYPOINT ["alerts2panda"]