Add a Dockerfile for Alpine Linux 3.8

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2019-02-21 22:57:35 -08:00
parent 49b71e71d6
commit d40237cba4
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,14 @@
FROM alpine:3.8
ARG CTNG_UID
ARG CTNG_GID
RUN addgroup -g $CTNG_GID ctng
RUN adduser -D -h /home/ctng -G ctng -u $CTNG_UID -s /bin/bash ctng
# Activate community and testing repositories
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories
RUN apk update
RUN apk add alpine-sdk wget xz git bash autoconf automake bison flex texinfo help2man gawk libtool ncurses-dev gettext-dev python-dev
RUN wget -O /sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64
RUN chmod a+x /sbin/dumb-init
RUN echo 'export PATH=/opt/ctng/bin:$PATH' >> /etc/profile
ENTRYPOINT [ "/sbin/dumb-init", "--" ]

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/bash --login
# Use --login to ensure /etc/profile is read
set -e
cd work

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/bash --login
# Use --login to make sure /etc/profile is sourced
set -e
cd