Skip to content

Instantly share code, notes, and snippets.

@ifokeev
Last active October 13, 2016 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifokeev/2238135cb78752efb5c410515894c75b to your computer and use it in GitHub Desktop.
Save ifokeev/2238135cb78752efb5c410515894c75b to your computer and use it in GitHub Desktop.
FROM ruby:alpine
ARG PACKAGES="build-base linux-headers gcc abuild binutils ca-certificates cmake procps pcre-dev curl-dev openssl-dev libexecinfo-dev git nodejs pkgconf"
ENV APP_PATH /usr/src/app
ENV PATH="/opt/passenger/bin:$PATH"
RUN mkdir -p /opt/passenger
COPY passenger /opt/passenger
RUN echo '' > /etc/apk/repositories && \
echo 'http://nl.alpinelinux.org/alpine/edge/main/' >> /etc/apk/repositories && \
echo 'http://nl.alpinelinux.org/alpine/edge/testing/' >> /etc/apk/repositories
# default packages
RUN apk add --update --no-cache $PACKAGES
#app dir
RUN mkdir -p $APP_PATH
WORKDIR $APP_PATH
######################################### example rack app
RUN gem install rack
COPY config.ru /usr/src/app/
CMD ["passenger", "start", "--no-install-runtime", "--no-compile-runtime"]
EXPOSE 3000
Logs
Building in Docker Cloud's infrastructure...
Starting to clone
Cloning into '.'...
Cloning done
Getting README
Getting Dockerfile
KernelVersion: 4.4.0-34-generic
Os: linux
BuildTime: 2016-07-28T22:11:10.070091404+00:00
ApiVersion: 1.24
Version: 1.12.0
GitCommit: 8eab29e
Arch: amd64
GoVersion: go1.6.3
Starting build of index.docker.io/111h/alpine-passenger-standalone:latest...
Step 1 : FROM ruby:alpine
---> 785b02b427cf
Step 2 : ARG PACKAGES="build-base linux-headers gcc abuild binutils ca-certificates cmake procps pcre-dev curl-dev openssl-dev libexecinfo-dev git nodejs pkgconf"
---> Running in 5c28b1a3b07d
---> 919aa0a59d09
Removing intermediate container 5c28b1a3b07d
Step 3 : ENV APP_PATH /usr/src/app
---> Running in 3f408ca2d410
---> 5f1f5d877431
Removing intermediate container 3f408ca2d410
Step 4 : ENV PATH "/opt/passenger/bin:$PATH"
---> Running in bb556f662027
---> 39a0767baa89
Removing intermediate container bb556f662027
Step 5 : RUN mkdir -p /opt/passenger
---> Running in 5c6a10ab10d3
---> 44dca098414c
Removing intermediate container 5c6a10ab10d3
Step 6 : COPY passenger /opt/passenger
---> 14003e5fce57
Removing intermediate container 2a0d869f9f0d
Step 7 : RUN echo '' > /etc/apk/repositories && echo 'http://nl.alpinelinux.org/alpine/edge/main/' >> /etc/apk/repositories && echo 'http://nl.alpinelinux.org/alpine/edge/testing/' >> /etc/apk/repositories
---> Running in ac60a9e8fbcd
---> ad01203a1288
Removing intermediate container ac60a9e8fbcd
Step 8 : RUN apk add --update --no-cache $PACKAGES
---> Running in 233378772a5f
fetch http://nl.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
openssl-dev-1.0.2j-r0:
conflicts:
libressl-dev-2.4.3-r1[pc:libcrypto=1.0.2j]
libressl-dev-2.4.3-r1[pc:libssl=1.0.2j]
libressl-dev-2.4.3-r1[pc:openssl=1.0.2j]
satisfies: world[openssl-dev]
.ruby-rundeps-0[openssl-dev]
libssh2-dev-1.7.0-r2[pc:libcrypto]
libssh2-dev-1.7.0-r2[pc:libssl]
libressl-dev-2.4.3-r1:
conflicts:
openssl-dev-1.0.2j-r0[pc:libcrypto=2.4.3]
openssl-dev-1.0.2j-r0[pc:libssl=2.4.3]
openssl-dev-1.0.2j-r0[pc:openssl=2.4.3]
satisfies: libssh2-dev-1.7.0-r2[libressl-dev]
libssh2-dev-1.7.0-r2[pc:libcrypto]
libssh2-dev-1.7.0-r2[pc:libssl]
curl-dev-7.50.3-r1[libressl-dev]
Removing intermediate container 233378772a5f
The command '/bin/sh -c apk add --update --no-cache $PACKAGES' returned a non-zero code: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment