2018-02-01 16:48:59 +00:00
|
|
|
FROM ubuntu:16.04 as compy-builder
|
|
|
|
MAINTAINER Barna Csorogi <barnacs@justletit.be>
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
curl \
|
|
|
|
g++ \
|
|
|
|
git \
|
|
|
|
libjpeg8-dev
|
|
|
|
|
|
|
|
RUN mkdir -p /usr/local/ && \
|
|
|
|
curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz && \
|
|
|
|
tar xf go1.9.linux-amd64.tar.gz -C /usr/local
|
|
|
|
|
|
|
|
RUN mkdir -p /go/src/github.com/barnacs/compy/
|
|
|
|
COPY . /go/src/github.com/barnacs/compy/
|
|
|
|
WORKDIR /go/src/github.com/barnacs/compy
|
|
|
|
RUN /usr/local/go/bin/go get -d -v ./...
|
|
|
|
RUN /usr/local/go/bin/go build -v
|
|
|
|
|
2017-08-26 00:53:06 +00:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
MAINTAINER Barna Csorogi <barnacs@justletit.be>
|
|
|
|
|
2017-09-09 20:15:35 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
libjpeg8 \
|
|
|
|
openssl \
|
|
|
|
ssl-cert && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2017-08-26 00:53:06 +00:00
|
|
|
|
|
|
|
WORKDIR /opt/compy
|
|
|
|
COPY \
|
2018-02-01 16:48:59 +00:00
|
|
|
--from=compy-builder \
|
|
|
|
/go/src/github.com/barnacs/compy/compy \
|
|
|
|
/go/src/github.com/barnacs/compy/docker.sh \
|
2017-08-26 00:53:06 +00:00
|
|
|
/opt/compy/
|
|
|
|
|
|
|
|
# TODO: configure HTTP BASIC authentication
|
|
|
|
# TODO: user-provided certificates
|
|
|
|
ENV \
|
|
|
|
CERTIFICATE_DOMAIN="localhost"
|
|
|
|
|
|
|
|
EXPOSE 9999
|
|
|
|
ENTRYPOINT ["./docker.sh"]
|