-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuser.Dockerfile
58 lines (49 loc) · 1.19 KB
/
user.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:20.04
WORKDIR /
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
RUN apt-get update && apt-get install -y \
at \
build-essential \
wget \
curl \
git \
libpq-dev \
libffi-dev \
libzmq3-dev \
libsocketcan-dev \
pkg-config \
gcc-multilib \
g++-multilib \
postgresql
# install python
RUN apt-get update && apt-get install -y \
python3-pip \
python3-dev \
python3-venv
WORKDIR /usr/local/bin
RUN ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip
# copy our repo to the image
WORKDIR /home/ex2_ground_station_website
COPY . .
# Install python dependencies
RUN pip3 install -r requirements.txt
# build libcsp
WORKDIR /home/ex2_ground_station_website
RUN ./build_libcsp.sh
# install node.js & npm
WORKDIR /home
RUN apt-get update && apt-get install -y \
nodejs \
npm
# set up environment
WORKDIR /home/ex2_ground_station_website
ENV FLASK_APP=groundstation/__init__.py
ENV FLASK_ENV=production
ENV APP_SETTINGS=groundstation.config.ProductionConfig
ENV SECRET_KEY="overwritten-in-keys-sh"
ENV SLACK_TOKEN="overwritten-in-keys-sh"
ENV LD_LIBRARY_PATH=libcsp/build
ENV PYTHONPATH=libcsp/build
ENTRYPOINT [ "./entrypoint.prod.sh" ]