forked from 3liz/lizmap-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.porter
35 lines (26 loc) · 1.33 KB
/
Dockerfile.porter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# vim: ft=dockerfile
FROM ubuntu:20.04
ARG BUNDLE_DIR
RUN apt-get update && apt-get install -y ca-certificates
# This is a template Dockerfile for the bundle's invocation image
# You can customize it to use different base images, install tools and copy configuration files.
#
# Porter will use it as a template and append lines to it for the mixins
# and to set the CMD appropriately for the CNAB specification.
#
# Install Docker/docker-compose
# Docker version and compose version is broken in docker-compose mixin
ENV DOCKER_VERSION="20.10.11"
RUN apt-get update && apt-get install -y wget && \
wget https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz && \
tar -xvf docker-${DOCKER_VERSION}.tgz && \
mv docker/docker /usr/bin/docker && \
chmod +x /usr/bin/docker && \
rm -rf docker/ docker-${DOCKER_VERSION}.tgz
RUN wget https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 -O /usr/bin/docker-compose && \
chmod +x /usr/bin/docker-compose
# You can control where the mixin's Dockerfile lines are inserted into this file by moving "# PORTER_MIXINS" line
# another location in this file. If you remove that line, the mixins generated content is appended to this file.
# PORTER_MIXINS
# Use the BUNDLE_DIR build argument to copy files into the bundle
COPY . $BUNDLE_DIR