refactoring some containers
This commit is contained in:
parent
462b5685eb
commit
d58ef06907
|
@ -7,9 +7,11 @@ RUN apt-get update && apt-get install -y curl
|
||||||
RUN curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /tmp
|
RUN curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /tmp
|
||||||
RUN mv /tmp/beanstalk_console-master /source
|
RUN mv /tmp/beanstalk_console-master /source
|
||||||
|
|
||||||
RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
|
RUN apt-get remove --purge -y curl &&
|
||||||
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
apt-get autoclean &&
|
||||||
|
apt-get clean &&
|
||||||
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
EXPOSE 2080
|
EXPOSE 2080
|
||||||
|
|
||||||
CMD bash -c 'BEANSTALK_SERVERS=$BEANSTALKD_PORT_11300_TCP_ADDR:11300 php -S 0.0.0.0:2080 -t /source/public'
|
CMD bash -c 'BEANSTALK_SERVERS=$BEANSTALKD_PORT_11300_TCP_ADDR:11300 php -S 0.0.0.0:2080 -t /source/public'
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
FROM alpine:3.4
|
FROM alpine:3.4
|
||||||
|
|
||||||
MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
|
MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
|
||||||
|
|
||||||
LABEL caddy_version="0.9.0" architecture="amd64"
|
LABEL caddy_version="0.9.0" architecture="amd64"
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk upgrade \
|
&& apk upgrade \
|
||||||
&& apk add tar curl
|
&& apk add tar curl
|
||||||
|
|
||||||
RUN curl --silent --show-error --fail --location \
|
RUN curl --silent --show-error --fail --location \
|
||||||
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
|
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
|
||||||
|
@ -16,7 +17,9 @@ RUN curl --silent --show-error --fail --location \
|
||||||
&& /usr/bin/caddy -version
|
&& /usr/bin/caddy -version
|
||||||
|
|
||||||
EXPOSE 80 443 2015
|
EXPOSE 80 443 2015
|
||||||
|
|
||||||
WORKDIR /var/www/laravel/public
|
WORKDIR /var/www/laravel/public
|
||||||
|
|
||||||
ENTRYPOINT ["caddy"]
|
ENTRYPOINT ["caddy"]
|
||||||
|
|
||||||
CMD ["-conf", "/etc/Caddyfile"]
|
CMD ["-conf", "/etc/Caddyfile"]
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
|
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
|
||||||
RUN apt-get update -y && apt-get install -y software-properties-common \
|
|
||||||
&& add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main" \
|
RUN apt-get install -y software-properties-common \
|
||||||
&& apt-get update -y \
|
&& add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main" \
|
||||||
&& apt-get install -y hhvm \
|
&& apt-get update -y \
|
||||||
&& apt-get clean \
|
&& apt-get install -y hhvm \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN mkdir -p /var/www/laravel
|
RUN mkdir -p /var/www/laravel
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue