Dockerfile 324 Bytes
Newer Older
Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM node:6.11.1-alpine

RUN apk add --update --no-cache curl
RUN mkdir -p /usr/src/frontend
WORKDIR /usr/src/frontend

COPY package.json /usr/src/frontend/
RUN npm install

COPY . /usr/src/frontend
COPY .env.example .env
RUN ./install-fonts.sh
RUN npm run build:prod

EXPOSE 3000
Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
16

Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
17
CMD ["node", "server.js", "--use_strict"]