forked from OpenSpending-Clone/os-conductor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (36 loc) · 954 Bytes
/
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
FROM python:3.6-alpine3.15
WORKDIR /app
RUN apk add --update --no-cache \
libpq \
postgresql-dev \
libffi \
libffi-dev \
bash \
curl \
libstdc++ \
nodejs \
&& apk --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --update add \
leveldb \
leveldb-dev
COPY requirements.txt .
RUN apk add --update --no-cache --virtual=build-dependencies \
build-base \
git \
npm \
&& pip install setuptools==45 \
&& pip install -r requirements.txt
# package and install locally
RUN git clone https://github.com/vulekamali/os-types.git \
&& cd os-types \
&& git checkout 424e46e \
&& npm install \
&& npm run build \
&& npm pack \
&& npm install -g os-types-1.15.2.tgz
COPY config.yml config.yml
COPY docker/startup.sh /startup.sh
COPY docker/docker-entrypoint.sh /entrypoint.sh
COPY conductor conductor
EXPOSE 8000
CMD ["/startup.sh"]
ENTRYPOINT ["/entrypoint.sh"]