qpa-client/Dockerfile

29 lines
585 B
Docker
Raw Normal View History

2019-08-03 17:25:41 +02:00
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update
RUN apt-get install -y nodejs yarn
# Node
RUN apt-get install -y nodejs
# application
RUN mkdir /opt/client
2019-08-04 11:29:17 +02:00
COPY ./dist ./opt/client
COPY ./package.json /opt/client
COPY ./yarn.lock /opt/client
2019-08-03 17:25:41 +02:00
2019-08-04 11:29:17 +02:00
RUN (cd /opt/client; yarn)
2019-08-03 17:25:41 +02:00
2019-08-04 11:29:17 +02:00
WORKDIR /opt/client
2019-08-03 17:25:41 +02:00
2019-08-04 11:29:17 +02:00
CMD node SSR/index.js