forked from taylorsilva/dcind
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
45 lines (34 loc) · 1.46 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:20.04
# ubuntu:jammy
ARG DOCKER_VERSION=25.0.4
ARG DOCKER_COMPOSE_VERSION=2.26.0
ARG NODE_VERSION=18.x
# Install required packages
RUN apt-get update && \
apt-get install -y curl libffi-dev openssl gcc g++ libc-dev make iptables util-linux wget sed grep coreutils iproute2 openjdk-11-jdk && \
rm -rf /var/lib/apt/lists/*
# Install Node.js
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - && \
apt-get install -y nodejs
# Install Docker
RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar -xzC /tmp \
&& mv /tmp/docker/* /bin/ \
&& chmod +x /bin/docker* \
&& rm -rf /tmp/docker*
RUN docker --version
# Install Docker Compose
RUN curl -L https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64 -o /bin/docker-compose \
&& chmod +x /bin/docker-compose
RUN docker-compose --version
# Install chrome for running jasmine tests while building jar
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y google-chrome-stable xvfb
# Clean up
RUN rm -rf /root/.cache /tmp/*
# Include functions to start/stop docker daemon
COPY docker-lib.sh /docker-lib.sh
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/bash"]