Files
website/staging-container/Dockerfile
T
Jess Frazelle cf65f25ca9 dockerfile: change to alpine base and cleanup
This makes the image a lot smaller and it's using an official image
as the base to make sure we get security updates etc.

The image size went from:

```
REPOSITORY                      SIZE
gcr.io/google-samples/k8sdocs	837 MB

```

To:

```
REPOSITORY                      SIZE
gcr.io/google-samples/k8sdocs	227 MB
```

Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-02 14:13:32 -08:00

27 lines
365 B
Docker

FROM alpine:3.3
RUN apk add --no-cache \
build-base \
ca-certificates \
libffi-dev \
nodejs \
ruby-dev \
ruby-nokogiri \
zlib-dev
RUN gem install \
bundler \
github-pages \
io-console \
--no-rdoc --no-ri
VOLUME /k8sdocs
EXPOSE 4000
COPY start.sh /start.sh
WORKDIR /k8sdocs
CMD [ "/start.sh" ]
# For instructions, see http://kubernetes.io/editdocs/