-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (30 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
41 lines (30 loc) · 813 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
29
30
31
32
33
34
35
36
37
38
39
40
41
#Use a JDK that allows multiple platforms
FROM eclipse-temurin:11
#Create a home folder
RUN mkdir -p /home/meg
ENV HOME=/home/meg
#Set the local work directory
ENV LOCAL=/usr/local
WORKDIR $LOCAL
# Get other permissions right, too
RUN mkdir -p $HOME/data
#Install some apps
RUN apt-get update
RUN apt-get -y install vim
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
# Copy the Config
#COPY minima.config $HOME/minima.config
#Copy the minima script
#COPY minima /usr/bin/minima
#RUN chmod +x /usr/bin/minima
#Make BASH the defult
RUN ln -sf /bin/bash /bin/sh
# Copy in startup script, minima and dapps
COPY ./jar/minima-meg-server.jar minima-meg-server.jar
#Move to Home folder
WORKDIR $HOME
# Minima ports
EXPOSE 8080
# Start her up
ENTRYPOINT ["java", "-jar", "/usr/local/minima-meg-server.jar"]