-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
33 lines (27 loc) · 1.19 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
FROM rockylinux:9
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.title="APEL SSM"
LABEL org.opencontainers.image.description="Secure STOMP Messenger (SSM) is designed to simply send messages using the STOMP protocol or via the ARGO Messaging Service (AMS)."
LABEL org.opencontainers.image.source="https://github.com/apel/ssm"
LABEL org.opencontainers.image.licenses="Apache License, Version 2.0"
# Copy the SSM Git repository to /tmp/ssm
COPY . /tmp/ssm
# Then set /tmp/ssm as the working directory
WORKDIR /tmp/ssm
# Add the EPEL repo so we can get pip
RUN yum -y install epel-release && yum clean all
# Then get pip
RUN yum -y install python3-pip && yum clean all
# Install libffi, a requirement of openssl
RUN yum -y install libffi-devel && yum clean all
# Install the system requirements of ssm
RUN yum -y install openssl && yum clean all
# Install the python requirements of SSM
RUN pip install -r requirements.txt
# Then install the SSM
RUN python3 setup.py install
# Set the working directory back to /
WORKDIR /
# Then delete the temporary copy of the SSM Git repository
# as there is no need for it after the image has been built.
RUN rm -rf /tmp/ssm