-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (26 loc) · 832 Bytes
/
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
FROM perl:latest
MAINTAINER Florentin Raud [email protected]
RUN apt-get update && \
apt-get upgrade -y && \
BUILD_PACKAGES="curl make gcc" && \
apt-get -y install $BUILD_PACKAGES --no-install-recommends && \
curl -L http://cpanmin.us | perl - Dancer2 && \
apt-get remove --purge -y curl make gcc && \
apt-get autoremove -y && \
apt-get clean && \
apt-get autoclean && \
echo -n > /var/lib/apt/extended_states && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /usr/share/man/?? && \
rm -rf /usr/share/man/??_* && \
rm -rf ~/.cpanm/*
# Add git commands to allow container updating
ADD ./pull /usr/bin/pull
ADD ./push /usr/bin/push
RUN chmod 755 /usr/bin/pull && chmod 755 /usr/bin/push
# Plackup the git or local dancer app
ADD ./start.sh /start.sh
RUN chmod 755 /start.sh
# Expose Ports
EXPOSE 5000
CMD ["/bin/bash", "/start.sh"]