2018-06-01 22:21:16 +02:00
|
|
|
MAINTAINER chamunks [at] gmail [dot] com
|
2018-06-01 02:08:46 +02:00
|
|
|
## Base Image
|
|
|
|
## Using the smallest container available
|
|
|
|
## https://hub.docker.com/_/node/
|
|
|
|
# 8.11.2-alpine, 8.11-alpine, 8-alpine, carbon-alpine (8/alpine/Dockerfile)
|
2018-06-01 22:21:16 +02:00
|
|
|
FROM node:8-alpine
|
2018-06-01 02:08:46 +02:00
|
|
|
|
2018-06-01 22:21:16 +02:00
|
|
|
## Install base packages and clone repo to src directory.
|
2018-06-01 02:08:46 +02:00
|
|
|
RUN npm update && \
|
2018-06-01 21:58:29 +02:00
|
|
|
apk update && apk --no-cache add git curl wget && \
|
2018-06-01 02:08:46 +02:00
|
|
|
adduser speech -h /app/ -s /bin/ash -D && \
|
|
|
|
chown -Rv speech /app && \
|
2018-06-01 19:32:52 +02:00
|
|
|
git clone https://github.com/lbryio/www.spee.ch.git /usr/local/src/www.spee.ch/
|
2018-06-01 02:08:46 +02:00
|
|
|
|
2018-06-01 22:21:16 +02:00
|
|
|
## 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
|
2018-06-01 02:08:46 +02:00
|
|
|
|
2018-06-01 22:21:16 +02:00
|
|
|
EXPOSE 3000
|
2018-06-01 02:08:46 +02:00
|
|
|
USER speech
|
|
|
|
WORKDIR /app/
|
|
|
|
ENTRYPOINT ["docker-entrypoint"]
|
|
|
|
CMD ["npm", "run", "start:dev"]
|