mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-01-30 17:13:46 +01:00
add pond
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
bd8109e124
commit
2f928bc0c8
45
pond/Dockerfile
Normal file
45
pond/Dockerfile
Normal file
|
@ -0,0 +1,45 @@
|
|||
FROM debian:jessie
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
libgtk-3-0 \
|
||||
libgtkspell3-3-0 \
|
||||
libtspi1 \
|
||||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN buildDeps=' \
|
||||
golang \
|
||||
git \
|
||||
gcc \
|
||||
libgtk-3-dev \
|
||||
libgtkspell3-3-dev \
|
||||
libtspi-dev \
|
||||
pkg-config \
|
||||
' \
|
||||
set -x \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y $buildDeps --no-install-recommends \
|
||||
&& go get -d -v github.com/agl/pond/client \
|
||||
&& go get -d -v github.com/agl/pond/server \
|
||||
&& cd /go/src/github.com/agl/pond \
|
||||
&& go build -o /usr/bin/pond-client ./client \
|
||||
&& go build -o /usr/bin/pond-server ./server \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /go \
|
||||
&& echo "Build complete."
|
||||
|
||||
# create pond user
|
||||
ENV HOME /home/pond
|
||||
RUN useradd --create-home --home-dir $HOME pond \
|
||||
&& chown -R pond:pond $HOME
|
||||
|
||||
WORKDIR $HOME
|
||||
USER pond
|
||||
|
||||
CMD [ "pond-client", "-cli" ]
|
Loading…
Reference in New Issue
Block a user