-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (30 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
41 lines (30 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
###########################################################
#
# Dockerfile for micro-dockerhub-hook
#
###########################################################
# Setting the base to nodejs 10
FROM mhart/alpine-node:10
# Maintainer
MAINTAINER Jonas Enge
#### Begin setup ####
# Installs docker
RUN apk add --update --no-cache docker py-pip
RUN apk add bash bash-doc bash-completion
RUN pip install docker-compose
# Extra tools for native dependencies
# RUN apk add --no-cache make gcc g++ python
# Bundle app source
ENV WORKDIR /src
COPY . ${WORKDIR}
# Change working directory
WORKDIR "${WORKDIR}"
# Install dependencies
RUN npm install --production
# Env variables
ENV SERVER_PORT ${PORT}
# ENV TOKEN abc123
# ENV DEBUG DISABLE
EXPOSE ${PORT}
# Startup
ENTRYPOINT npm start