Skip to content

Instantly share code, notes, and snippets.

@cmelbye
Created February 26, 2015 19:28
Show Gist options
  • Save cmelbye/44f92dd8994bec854434 to your computer and use it in GitHub Desktop.
Save cmelbye/44f92dd8994bec854434 to your computer and use it in GitHub Desktop.
# Dockerfile extending the generic Go image with application files for a
# single application.
FROM google/appengine-go
RUN apt-get update && apt-get install nasm
RUN curl -L https://github.com/mozilla/mozjpeg/releases/download/v3.0/mozjpeg-3.0-release-source.tar.gz | tar xvz
RUN cd mozjpeg && ./configure && make install
ENV GOMAXPROCS 4
ADD . /app
RUN /bin/bash /app/_ah/build.sh
➜ download git:(new-download) ✗ docker build .
Sending build context to Docker daemon 15.87 kB
Sending build context to Docker daemon
Step 0 : FROM google/appengine-go
---> 3b6b889b2273
Step 1 : RUN apt-get update && apt-get install nasm
---> Using cache
---> ad21636ed750
Step 2 : RUN curl -L https://github.com/mozilla/mozjpeg/releases/download/v3.0/mozjpeg-3.0-release-source.tar.gz | tar xvz
---> Using cache
---> 0b4d8d28359b
Step 3 : RUN cd mozjpeg && ./configure && make install
---> Using cache
---> 3fab3f49bc1f
Step 4 : ENV GOMAXPROCS 4
---> Using cache
---> cf9c2756b477
Step 5 : ADD . /app
---> Using cache
---> 0a852ebde9f2
Step 6 : RUN /bin/bash /app/_ah/build.sh
---> Running in c9840b475781
/bin/bash: /app/_ah/build.sh: No such file or directory
INFO[0001] The command [/bin/sh -c /bin/bash /app/_ah/build.sh] returned a non-zero code: 127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment