update more images to use alpine

Signed-off-by: Jessica Frazelle <princess@docker.com>
This commit is contained in:
Jessica Frazelle 2015-07-26 21:46:34 -07:00
parent d96d372830
commit 22b7de93b6
6 changed files with 25 additions and 24 deletions

View File

@ -7,3 +7,5 @@ if a file you are looking at does not have a command, please
pull request it! pull request it!
Almost all of these live on dockerhub under [jess](https://registry.hub.docker.com/repos/jess/). Almost all of these live on dockerhub under [jess](https://registry.hub.docker.com/repos/jess/).
You may also want to checkout my [dotfiles](https://github.com/jfrazelle/dotfiles), specifically the aliases for all these files which are here: [github.com/jfrazelle/dotfiles/blob/master/.dockerfunc](https://github.com/jfrazelle/dotfiles/blob/master/.dockerfunc).

View File

@ -1,8 +1,13 @@
FROM python:2.7.8 FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y groff RUN apk update && apk add \
RUN pip install awscli ca-certificates \
groff \
python \
py-pip \
&& rm -rf /var/cache/apk/* \
&& pip install awscli
RUN mkdir -p /root/.aws \ RUN mkdir -p /root/.aws \
&& /bin/echo -e '[default]\noutput = json\nregion = $AMAZON_REGION\naws_access_key_id = $AMAZON_ACCESS_KEY_ID\naws_secret_access_key = $AMAZON_SECRET_ACCESS_KEY' > /root/.aws/config && /bin/echo -e '[default]\noutput = json\nregion = $AMAZON_REGION\naws_access_key_id = $AMAZON_ACCESS_KEY_ID\naws_secret_access_key = $AMAZON_SECRET_ACCESS_KEY' > /root/.aws/config

View File

@ -3,13 +3,8 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk update && apk add \
ca-certificates \ ca-certificates \
openssl \ py-boto \
python \ && rm -rf /var/cache/apk/*
python-dev \
py-pip \
build-base \
&& rm -rf /var/cache/apk/* \
&& pip install boto
COPY ./reset-cache.py /bin/reset-cache.py COPY ./reset-cache.py /bin/reset-cache.py

View File

@ -4,9 +4,7 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk update && apk add \
ca-certificates \ ca-certificates \
python \ python \
python-dev \
py-pip \ py-pip \
build-base \
&& rm -rf /var/cache/apk/* \ && rm -rf /var/cache/apk/* \
&& pip install httpie httpie-unixsocket && pip install httpie httpie-unixsocket

View File

@ -7,17 +7,20 @@
# --name rainbowstream \ # --name rainbowstream \
# jess/rainbowstream # jess/rainbowstream
# #
FROM python:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \ RUN apk update && apk add \
libjpeg-dev \ build-base \
libfreetype6 \ ca-certificates \
libfreetype6-dev \ freetype \
zlib1g-dev \ freetype-dev \
--no-install-recommends \ openjpeg-dev \
&& rm -rf /var/lib/apt/lists/* python \
python-dev \
RUN pip install rainbowstream py-pip \
zlib-dev \
&& rm -rf /var/cache/apk/* \
&& pip install rainbowstream
ENTRYPOINT [ "rainbowstream" ] ENTRYPOINT [ "rainbowstream" ]

View File

@ -14,8 +14,6 @@ RUN useradd --create-home --home-dir $HOME user \
&& chown -R user:user $HOME && chown -R user:user $HOME
WORKDIR $HOME WORKDIR $HOME
VOLUME ["$HOME/.weechat"]
USER user USER user
ENTRYPOINT ["weechat"] ENTRYPOINT ["weechat"]