forked from nano-wallet-company/nano-wallet-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 924 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
FROM node:10.6.0-stretch
LABEL maintainer="Nano Wallet Company <[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -q
RUN apt-get install -qy apt-utils apt-transport-https
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN apt-get install -qy locales
ENV LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US:en"
RUN curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
RUN apt-get update -q
RUN apt-get install -qy --no-install-recommends google-chrome-stable
RUN useradd -s /bin/bash -mb /usr/src app
USER app
WORKDIR /usr/src/app
COPY --chown=app:app package.json .
COPY --chown=app:app yarn.lock .
RUN yarn install --frozen-lockfile --non-interactive
COPY --chown=app:app . .
EXPOSE 4200 7020 7357 9222
CMD ["yarn", "start"]