forked from rudderlabs/rudder-transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (22 loc) · 864 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
FROM node:14.19.0-alpine3.15
RUN apk update
RUN apk upgrade
# installing specific python version based on your previous configuration
RUN apk add --no-cache tini python2
# installing specific make version based on your previous configuration
RUN apk add make=4.2.1-r2 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.11/main
# installing specific gcc version based on your previous configuration
RUN apk add g++=9.3.0-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.11/main
# RUN apk add --no-cache tini python make g++
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
# Create app directory
WORKDIR /home/node/app
USER node
ARG version
ENV transformer_build_version=$version
COPY package*.json ./
RUN npm install
COPY --chown=node:node . .
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ "npm", "start" ]
EXPOSE 9090/tcp