lbry-docker/www.spee.ch/Dockerfile
chamunks 5284b01b5c Install latest source for spee.ch into a src dir
The idea here is when the container runs it will check the /app/
directory for anything and only copy things that aren't there already.
I might utilize rsync for this process as it'd apply more reliable magic
than I want to code or maintain.
2018-06-01 13:32:52 -04:00

20 lines
562 B
Docker

## Base Image
FROM node:8-alpine
## Using the smallest container available
## https://hub.docker.com/_/node/
# 8.11.2-alpine, 8.11-alpine, 8-alpine, carbon-alpine (8/alpine/Dockerfile)
MAINTAINER chamunks [at] gmail [dot] com
RUN npm update && \
apk update && apk --no-cache add git && \
adduser speech -h /app/ -s /bin/ash -D && \
chown -Rv speech /app && \
git clone https://github.com/lbryio/www.spee.ch.git /usr/local/src/www.spee.ch/
EXPOSE 3000
USER speech
WORKDIR /app/
ENTRYPOINT ["docker-entrypoint"]
CMD ["npm", "run", "start:dev"]