Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-baseimage-ubuntu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Prosper
docker-baseimage-ubuntu
Commits
949178ed
Commit
949178ed
authored
8 years ago
by
sparklyballs
Browse files
Options
Downloads
Patches
Plain Diff
tidy up Dockerfile
parent
c0cad46a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+17
-17
17 additions, 17 deletions
Dockerfile
README.md
+0
-6
0 additions, 6 deletions
README.md
with
17 additions
and
23 deletions
Dockerfile
+
17
−
17
View file @
949178ed
FROM
ubuntu:16.04
MAINTAINER
sparklyballs
# set environment variables
ARG
DEBIAN_FRONTEND="noninteractive"
ENV
HOME="/root"
ENV
TERM="xterm"
# set version for s6 overlay
ARG
OVERLAY_VERSION="v1.18.1.5"
ARG
OVERLAY_ARCH="amd64"
ARG
OVERLAY_URL="https://github.com/just-containers/s6-overlay/releases/download"
ARG
OVERLAY_WWW="${OVERLAY_URL}"/"${OVERLAY_VERSION}"/s6-overlay-"${OVERLAY_ARCH}".tar.gz
# create abc user and make folders
RUN
\
useradd
-u
911
-U
-d
/config
-s
/bin/false abc
&&
\
usermod
-G
users
abc
&&
\
mkdir
-p
\
/app
\
/config
\
/defaults
# set environment variables
ARG
DEBIAN_FRONTEND="noninteractive"
ENV
HOME="/root" \
TERM="xterm"
# copy sources
COPY
sources.list /etc/apt/
...
...
@@ -37,8 +26,19 @@ RUN \
# add s6 overlay
curl -o \
/tmp/s6-overlay.tar.gz -L \
"${OVERLAY_WWW}" && \
tar xvfz /tmp/s6-overlay.tar.gz -C / && \
"https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}.tar.gz" && \
tar xfz \
/tmp/s6-overlay.tar.gz -C / && \
# create abc user
useradd -u 911 -U -d /config -s /bin/false abc && \
usermod -G users abc && \
# make our folders
mkdir -p \
/app \
/config \
/defaults && \
# cleanup
apt-get clean && \
...
...
This diff is collapsed.
Click to expand it.
README.md
+
0
−
6
View file @
949178ed
...
...
@@ -16,9 +16,3 @@ If you want to comment\contribute to this image, are looking for support on any
*
[
forum.linuxserver.io
][
forumurl
]
*
[
IRC
][
ircurl
]
on freenode at
`#linuxserver.io`
*
[
Podcast
][
podcasturl
]
covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment