-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
50 lines (37 loc) · 1.03 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# syntax=docker/dockerfile:1
# Install the base requirements for the app.
# This stage is to support development.
FROM ubuntu:20.04 AS base
ARG DEBIAN_FRONTEND=noninteractive
# install prerequisits
######################
RUN \
echo "install packages" && \
apt-get update && \
apt-get install -y \
curl \
jq \
unzip \
python3 \
python3-pip
RUN apt-get install -y software-properties-common && \
# add-apt-repository -y ppa:linuxgndu/sqlitebrowser && \
apt-get update
# RUN apt-get install -y \
# sqlcipher=4.3.0-0~202102181541~462~202104031456~ubuntu20.04.1 \
# libsqlcipher-dev=4.3.0-0~202102181541~462~202104031456~ubuntu20.04.1
COPY . /app
WORKDIR /app
RUN python3 -m pip install --upgrade pip
RUN pip3 install -r requirements.txt
# RUN python3 -m pip install pysqlcipher3
# docker settings
#################
# map /config to host defined config path (used to store configuration from app)
VOLUME /config
# Expose port
ENV API_PORT=8080
EXPOSE 8080
# run app
#########
CMD [ "bash", "startup.sh"]