forked from maccyber/micro-dockerhub-hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (29 loc) · 836 Bytes
/
Dockerfile
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
###########################################################
#
# Dockerfile for micro-dockerhub-hook
#
###########################################################
# Setting the base to nodejs 15
FROM mhart/alpine-node:15
# Maintainer
LABEL Maintainer="Jonas Enge"
#### Begin setup ####
# Installs docker
COPY --from=docker:latest /usr/local/bin/docker /usr/bin/docker
COPY --from=docker/compose:alpine-1.28.0 /usr/local/bin/docker-compose /usr/bin/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