forked from jorgeacetozi/notepad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 651 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 651 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
# Set the base image to java8
FROM openjdk:8-alpine
# File Author / Maintainer
MAINTAINER Jorge Acetozi
# Define default environment variables
ENV NOTEPAD_HOME=/opt/notepad
ENV NOTEPAD_BINARIES=/opt/notepad/bin
# Create directory
RUN mkdir -p $NOTEPAD_BINARIES
# Set default directory
WORKDIR $NOTEPAD_HOME
# Copy notepad jar file
COPY target/*.jar $NOTEPAD_HOME/notepad.jar
# Add initialization script
ADD entrypoint.sh $NOTEPAD_BINARIES/entrypoint.sh
# Give permissions
RUN chmod 755 $NOTEPAD_BINARIES/entrypoint.sh
# Expose default servlet container port
EXPOSE 8080
# Main command
ENTRYPOINT ["/bin/sh", "/opt/notepad/bin/entrypoint.sh"]