mirror of
/repos/elixir-docker.git
synced 2025-12-30 08:01:36 +01:00
all in one layer
This commit is contained in:
commit
da4b7d2acd
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
# Pull base image
|
||||
FROM aiko/erlang-docker-pi:18.1
|
||||
|
||||
MAINTAINER Aiko Mastboom <docker@aiko.sh>
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y -o Dpkg::Options::="--force-confold" \
|
||||
&& apt-get install -y unzip \
|
||||
&& curl -LO https://github.com/elixir-lang/elixir/releases/download/v1.1.1/Precompiled.zip \
|
||||
&& cd /usr && unzip /Precompiled.zip \
|
||||
&& cd - \
|
||||
&& rm -rf /Precompiled.zip \
|
||||
&& apt-get remove -y unzip \
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# Define working directory
|
||||
WORKDIR /data
|
||||
|
||||
# Define default command
|
||||
# CMD ["bash"]
|
||||
19
Makefile
Normal file
19
Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
DOCKER_IMAGE_VERSION=1.1.1
|
||||
DOCKER_IMAGE_NAME=aiko/elixir-docker-pi
|
||||
DOCKER_IMAGE_TAGNAME=$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_VERSION)
|
||||
|
||||
default: build
|
||||
|
||||
build:
|
||||
docker build -t $(DOCKER_IMAGE_TAGNAME) .
|
||||
docker tag -f $(DOCKER_IMAGE_TAGNAME) $(DOCKER_IMAGE_NAME):latest
|
||||
|
||||
push:
|
||||
docker push $(DOCKER_IMAGE_NAME)
|
||||
|
||||
test:
|
||||
docker run --rm $(DOCKER_IMAGE_TAGNAME) /bin/echo "Success."
|
||||
|
||||
version:
|
||||
docker run --rm $(DOCKER_IMAGE_TAGNAME) node --version
|
||||
docker run --rm $(DOCKER_IMAGE_TAGNAME) npm --version
|
||||
Loading…
x
Reference in New Issue
Block a user