forked from HSLdevcom/hsl-map-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (24 loc) · 1.19 KB
/
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
FROM node:6-stretch
ENV \
# MAT_OTP_URL="swarm.5t.torino.it:8070/otp/routers/mato/index/graphql" \
MAT_OTP_URL="approxymato:8080/otp/routers/mato/index/graphql" \
MAT_OTP_STOP_URL="approxymato:8080/otp/routers/mato/index/graphql" \
# TILES_LAST_MODIFIED definito anche sullo stack portainer di swarm, che ha precedenza
TILES_LAST_MODIFIED="Wed, 09 Sep 2020 11:22:00 GMT" \
WORK="/hsl-map-server"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y git unzip pngquant libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-video-dummy libgles2-mesa libstdc++6
WORKDIR ${WORK}
COPY package.json .
RUN yarn install
COPY . .
EXPOSE 8080
CMD ./run.sh
# TEST
# docker build -t registry:5000/map-server:test . ; docker push registry:5000/map-server:test
# PRODUZIONE
# docker build -t registry:5000/map-server . ; docker push registry:5000/map-server
# AWS
# docker build -t 910458460161.dkr.ecr.eu-central-1.amazonaws.com/mato/map-server:latest . ;
# aws ecr get-login-password --profile 5t-prod | docker login --username AWS --password-stdin 910458460161.dkr.ecr.eu-central-1.amazonaws.com
# docker push 910458460161.dkr.ecr.eu-central-1.amazonaws.com/mato/map-server:latest