This repository was archived by the owner on Sep 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
51 lines (42 loc) · 1.83 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
########################################################
### ***DO NOT EDIT*** This is an auto-generated file ###
########################################################
ARG BASE_IMAGE=mcr.microsoft.com/java/jre-headless:11u2-zulu-alpine-with-tools
ARG GIT_COMMIT=unspecified
FROM $BASE_IMAGE
LABEL maintainer="Azure App Services Container Images <appsvc-images@microsoft.com>"
# Re-define ARG to make the build argument available for use in the rest of the Dockerfile
ARG GIT_COMMIT
ENV GIT_COMMIT $GIT_COMMIT
ENV PORT 80
ENV SSH_PORT 2222
ADD tmp/shared/parkingpage.jar /tmp/appservice/parkingpage.jar
ADD tmp/shared/azure.appservice.jar /tmp/appservice/azure.appservice.jar
ADD tmp/shared/logging.properties /tmp/appservice/logging.properties
ADD tmp/shared/init_container.sh /bin/init_container.sh
ADD tmp/shared/sshd_config /etc/ssh/
#
# Enable and conigure SSH:
#
RUN apk add --update openssh-server \
&& echo "root:Docker!" | chpasswd \
&& apk update && apk add openrc \
&& rm -rf /var/cache/apk/* \
# Remove unnecessary services
&& rm -f /etc/init.d/hwdrivers \
/etc/init.d/hwclock \
/etc/init.d/mtab \
/etc/init.d/bootmisc \
/etc/init.d/modules \
/etc/init.d/modules-load \
/etc/init.d/modloop \
# Can't do cgroups
&& sed -i 's/\tcgroup_add_service/\t#cgroup_add_service/g' /lib/rc/sh/openrc-run.sh \
&& chmod 755 /bin/init_container.sh \
&& apk add --no-cache bash; \
find ./bin/ -name '*.sh' -exec sed -ri 's|^#!/bin/sh$|#!/usr/bin/env bash|' '{}' +
EXPOSE 80 2222
ENTRYPOINT ["/bin/init_container.sh"]
########################################################
### ***DO NOT EDIT*** This is an auto-generated file ###
########################################################