Organization and adding docker-entrypoint
This commit is contained in:
parent
31d020251e
commit
8bad2a6a8e
1 changed files with 7 additions and 3 deletions
|
@ -1,19 +1,23 @@
|
||||||
|
MAINTAINER chamunks [at] gmail [dot] com
|
||||||
## Base Image
|
## Base Image
|
||||||
FROM node:8-alpine
|
|
||||||
## Using the smallest container available
|
## Using the smallest container available
|
||||||
## https://hub.docker.com/_/node/
|
## https://hub.docker.com/_/node/
|
||||||
# 8.11.2-alpine, 8.11-alpine, 8-alpine, carbon-alpine (8/alpine/Dockerfile)
|
# 8.11.2-alpine, 8.11-alpine, 8-alpine, carbon-alpine (8/alpine/Dockerfile)
|
||||||
|
FROM node:8-alpine
|
||||||
|
|
||||||
MAINTAINER chamunks [at] gmail [dot] com
|
|
||||||
|
|
||||||
|
## Install base packages and clone repo to src directory.
|
||||||
RUN npm update && \
|
RUN npm update && \
|
||||||
apk update && apk --no-cache add git curl wget && \
|
apk update && apk --no-cache add git curl wget && \
|
||||||
adduser speech -h /app/ -s /bin/ash -D && \
|
adduser speech -h /app/ -s /bin/ash -D && \
|
||||||
chown -Rv speech /app && \
|
chown -Rv speech /app && \
|
||||||
git clone https://github.com/lbryio/www.spee.ch.git /usr/local/src/www.spee.ch/
|
git clone https://github.com/lbryio/www.spee.ch.git /usr/local/src/www.spee.ch/
|
||||||
|
|
||||||
EXPOSE 3000
|
## Install container support files
|
||||||
|
RUN source <(curl -s https://raw.githubusercontent.com/chamunks/docker-support/master/bin/install)
|
||||||
|
ADD ./docker-entrypoint.sh /bin/docker-entrypoint
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
USER speech
|
USER speech
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
ENTRYPOINT ["docker-entrypoint"]
|
ENTRYPOINT ["docker-entrypoint"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue