Public Repository

Last pushed: a year ago
Short Description
Based on the latest official "golang" image added with Google App Engine Go development server.
Full Description

Dockerfile:


FROM golang:latest

RUN apt-get update && apt-get install -y --no-install-recommends \
    unzip \
    && rm -rf /var/lib/apt/lists/*

ENV APPENGINE_VERSION=1.9.40
ENV APPENGINE_DOWNLOAD_URL=https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-$APPENGINE_VERSION.zip
ENV APPENGINE_DOWNLOAD_SHA1=ae37cf701705e6d0a2d3d5c3c1e13da7c63b5cdc

RUN curl -fsSL "$APPENGINE_DOWNLOAD_URL" -o appengine.zip \
    && echo "$APPENGINE_DOWNLOAD_SHA1  appengine.zip" | sha1sum -c - \
    && unzip appengine.zip -d /usr/local \
    && rm appengine.zip

ENV PATH=/usr/local/go_appengine:$PATH

RUN useradd --user-group --home=/go --create-home --shell /bin/false go

ENV HOME=/go

COPY ./src $HOME/src

RUN chown -R go:go $HOME/*
USER go

EXPOSE 8080
Docker Pull Command
Owner
juhovu

Comments (0)