-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from bryanlatten/feature-ubuntu-base
Dockerfile: revert to ubuntu
- Loading branch information
Showing
6 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.3 | ||
FROM ubuntu:14.04 | ||
MAINTAINER Bryan Latten <[email protected]> | ||
|
||
# Use in multi-phase builds, when an init process requests for the container to gracefully exit, so that it may be committed | ||
|
@@ -10,22 +10,27 @@ ENV SIGNAL_BUILD_STOP=99 \ | |
NOT_ROOT_USER=docker | ||
|
||
# Create an unprivileged user | ||
RUN adduser -D -S -H $NOT_ROOT_USER | ||
RUN useradd -r -s /bin/false $NOT_ROOT_USER | ||
|
||
# IMPORTANT: update is *part* of the upgrade statement to ensure the latest on each build. | ||
# Note: sed/grep replace the less performant, less functional busybox versions | ||
RUN apk update && \ | ||
apk upgrade && \ | ||
apk add \ | ||
sed \ | ||
grep \ | ||
RUN apt-get update && \ | ||
apt-get install -yq \ | ||
openssl \ | ||
ca-certificates \ | ||
software-properties-common \ | ||
supervisor \ | ||
nginx \ | ||
nano \ | ||
&& \ | ||
rm -rf /var/cache/apk/* | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Overlay the root filesystem from this repo | ||
# Install latest nginx (development PPA is actually mainline development) | ||
RUN add-apt-repository ppa:nginx/development -y && \ | ||
apt-get update -yq && \ | ||
apt-get install -yq nginx \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# # Overlay the root filesystem from this repo | ||
COPY ./container/root / | ||
|
||
EXPOSE 80 | ||
CMD ["/bin/sh", "/run.sh"] | ||
CMD ["/bin/bash", "/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
if [[ $SERVER_APP_NAME ]] | ||
then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters