-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 737 Bytes
/
Dockerfile
File metadata and controls
29 lines (19 loc) · 737 Bytes
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
# Ubuntu 15.04 with Java 7 installed.
# Build image with: docker build -t krizsan/ubuntu1504java7:v1 .
FROM ubuntu:latest
MAINTAINER Tapan
#USER root
COPY devsecops.tgz /tmp
RUN apt-get update && \
apt-get upgrade -y && \
apt-get update && \
apt-get install -y openjdk-8-jdk docker.io curl tar sudo && \
apt-get clean && \
curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose && \
cd /home && \
tar xvfz /tmp/devsecops.tgz
VOLUME /var/run/docker.sock /var/run/docker.sock
WORKDIR /home
EXPOSE 8888
CMD ["java", "-jar", "devsecops-ui-0.0.1-SNAPSHOT.jar"]