-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
39 lines (33 loc) · 1.17 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
# Dockerfile for the generating the Docker image for the Plastron HTTP Daemon (plastrond-http)
#
# To build, from the main plastron project directory, run:
#
# docker build -t docker.lib.umd.edu/plastrond-http:<VERSION> -f plastron-web/Dockerfile .
#
# where <VERSION> is the Docker image version to create.
FROM python:3.8.18-slim
RUN mkdir -p /opt/plastron
COPY plastron-client /opt/plastron/plastron-client
COPY plastron-models /opt/plastron/plastron-models
COPY plastron-rdf /opt/plastron/plastron-rdf
COPY plastron-messaging /opt/plastron/plastron-messaging
COPY plastron-repo /opt/plastron/plastron-repo
COPY plastron-utils /opt/plastron/plastron-utils
COPY plastron-web /opt/plastron/plastron-web
COPY plastron-cli /opt/plastron/plastron-cli
COPY plastron-stomp /opt/plastron/plastron-stomp
WORKDIR /opt/plastron
RUN pip install \
'./plastron-utils' \
'./plastron-client' \
'./plastron-rdf' \
'./plastron-messaging' \
'./plastron-models' \
'./plastron-repo' \
'./plastron-web' \
'./plastron-stomp'
ENV PYTHONUNBUFFERED=1
VOLUME /var/opt/plastron/msg
VOLUME /var/opt/plastron/jobs
EXPOSE 5000
ENTRYPOINT ["plastrond-http", "-c", "/etc/plastron-config.yml"]