-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 956 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (19 loc) · 956 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
FROM websphere-liberty:webProfile7
MAINTAINER Steven Tobias <stobias@harborfreight.com>
LABEL io.k8s.description="Platform for serving Websphere Liberty Applications" \
io.k8s.display-name="Websphere Liberty webProfile7 1.01" \
io.openshift.expose-services="9080:http,9443:https" \
io.openshift.tags="builder,html,websphere-liberty-openshift" \
io.openshift.s2i.scripts-url=image:///usr/local/s2i
# Copy the S2I scripts from ./.s2i/bin/ to /usr/local/s2i when making the builder image
COPY ./.s2i/bin/ /usr/local/s2i
RUN useradd -u 1001 websphere\
&& mkdir -p /config/jvm /config/dropins /config/lib \
&& chown -R 1001:0 /opt/ibm/wlp /logs /config
USER 1001
# Specify the ports the final image will expose
# These are already exposed in websphere-liberty:kernel. Added here for clarity
EXPOSE 8080 9443
WORKDIR /config
# Set the default CMD to print the usage of the image, if somebody does docker run
CMD ["usage"]