-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 835 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 835 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
FROM node:20.4-alpine3.18
MAINTAINER info@vizzuality.com
ENV NAME true-color-tiles
ENV USER true-color-tiles
RUN apk update && apk upgrade && \
apk add --no-cache --update bash git openssh python3 alpine-sdk\
build-base \
g++ \
cairo-dev \
jpeg-dev \
pango-dev \
giflib-dev
RUN addgroup $USER && adduser -s /bin/bash -D -G $USER $USER
RUN yarn global add grunt-cli bunyan pm2
RUN mkdir -p /opt/$NAME
COPY package.json /opt/$NAME/package.json
COPY yarn.lock /opt/$NAME/yarn.lock
COPY tsconfig.json /opt/$NAME/tsconfig.json
RUN cd /opt/$NAME && yarn install
COPY entrypoint.sh /opt/$NAME/entrypoint.sh
COPY config /opt/$NAME/config
COPY src /opt/$NAME/src
COPY test /opt/$NAME/test
WORKDIR /opt/$NAME
# Tell Docker we are going to use this ports
EXPOSE 3547
USER $USER
ENTRYPOINT ["./entrypoint.sh"]