forked from hotosm/oam-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (26 loc) · 868 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
FROM public.ecr.aws/r4e3a2l5/marblecutter-tools:latest
ARG NODE_ENV=production
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
git \
software-properties-common \
&& curl -sf https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& add-apt-repository -s "deb https://deb.nodesource.com/node_14.x $(lsb_release -c -s) main" \
&& apt-get update \
&& apt-get install --no-install-recommends -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN npm install --global yarn
WORKDIR /app
COPY yarn.lock /app
COPY package.json /app
RUN yarn install \
&& rm -rf /root/.npm
COPY . /app
ENV PATH /app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
EXPOSE 4000
CMD ["nf", "start"]