-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_18.04
More file actions
39 lines (33 loc) · 980 Bytes
/
Dockerfile_18.04
File metadata and controls
39 lines (33 loc) · 980 Bytes
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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV REDIS_VERSION 5.0.7
ENV DEB_VERSION_MAIN 4.0.9
ENV DEB_VERSION_ADD 1
ENV DEB_VERSION 5:${DEB_VERSION_MAIN}-${DEB_VERSION_ADD}
RUN sed -i 's/# deb-src/deb-src/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y \
dpkg-dev \
devscripts \
build-essential \
fakeroot \
debhelper \
libssl-dev \
libpcre3-dev \
zlib1g-dev \
quilt \
vim \
curl \
wget && \
apt-get build-dep -y redis-server
RUN useradd -m user && \
mkdir -p /home/user && \
chown user:user -R /home/user
USER user
WORKDIR /home/user
COPY --chown=user:user control_18.04 /home/user/control
COPY --chown=user:user changelog_18.04 /home/user/changelog
COPY --chown=user:user redis.conf /home/user/redis.conf
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY Dockerfile_18.04 /Dockerfile
ENTRYPOINT ["/docker-entrypoint.sh"]