-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 824 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 824 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
FROM node:20.4-alpine3.18
MAINTAINER info@vizzuality.com
ENV NAME salesforce-connector
ENV USER salesforce-connector
RUN apk update && apk upgrade && \
apk add --no-cache --update bash git openssh python3 alpine-sdk
RUN addgroup $USER && adduser -s /bin/bash -D -G $USER $USER
RUN yarn global add --unsafe-perm bunyan
RUN mkdir -p /opt/$NAME
COPY package.json /opt/$NAME/package.json
COPY yarn.lock /opt/$NAME/yarn.lock
RUN cd /opt/$NAME && yarn
COPY entrypoint.sh /opt/$NAME/entrypoint.sh
COPY tsconfig.json /opt/$NAME/tsconfig.json
COPY config /opt/$NAME/config
COPY ./src /opt/$NAME/src
COPY ./test opt/$NAME/test
WORKDIR /opt/$NAME
RUN chown -R $USER:$USER /opt/$NAME
RUN chmod a+x /opt/$NAME/entrypoint.sh
# Tell Docker we are going to use this ports
EXPOSE 9500
USER $USER
ENTRYPOINT ["./entrypoint.sh"]