mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-12 16:02:40 +01:00
Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required a `rm -rf /var/cache/apk`: - `apk update` - `apk add --update` - `apk add --update-cache` Supported since alpine 3.3.
This commit is contained in:
committed by
Jess Frazelle
parent
5a6ef53d6a
commit
7ac4881609
@@ -11,10 +11,9 @@ FROM alpine:latest
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
# Note: Tor is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
|
||||
RUN apk update && apk add \
|
||||
tor \
|
||||
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
RUN apk --no-cache add \
|
||||
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
|
||||
tor
|
||||
|
||||
# expose socks port
|
||||
EXPOSE 9050
|
||||
|
||||
Reference in New Issue
Block a user