summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: f8de6b54b19e944b7b6d651cb94ccdab24164d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM gradle:alpine
MAINTAINER Fabian Mastenbroek <f.s.mastenbroek@student.tudelft.nl>

# Copy OpenDC simulator
COPY ./ /home/gradle/simulator

# Fix permissions
USER root
RUN chown -R gradle:gradle /home/gradle/simulator && \
	chmod -R 771 /home/gradle/simulator
USER gradle

# Set the working directory to the JPA integration
WORKDIR /home/gradle/simulator/opendc-integration-jpa

# Build the application
RUN gradle --no-daemon installDist

# Run the application
CMD build/install/opendc-integration-jpa/bin/opendc-integration-jpa