mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-14 08:12:39 +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
@@ -3,7 +3,7 @@
|
||||
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
||||
# COMMENTS:
|
||||
# This file describes how to build tetris in a container with all
|
||||
# dependencies installed.
|
||||
# dependencies installed.
|
||||
# Tested on Debian Jessie
|
||||
# USAGE:
|
||||
# # Download tetris Dockerfile
|
||||
@@ -20,11 +20,10 @@ FROM alpine:latest
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
# Install emacs:
|
||||
# Note: Eamcs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
|
||||
RUN apk update && apk add \
|
||||
emacs \
|
||||
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
# Note: Emacs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
|
||||
RUN apk --no-cache add \
|
||||
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
|
||||
emacs
|
||||
|
||||
# Autorun tetris
|
||||
CMD ["/usr/bin/emacs", "-f", "tetris"]
|
||||
|
||||
Reference in New Issue
Block a user