qpa-server/Dockerfile

34 lines
640 B
Docker
Raw Normal View History

2019-07-26 15:32:11 +02:00
FROM ubuntu:18.04
2018-09-08 22:23:44 +02:00
2019-07-26 15:32:11 +02:00
RUN apt-get update
RUN apt-get install -y curl
2018-09-08 22:23:44 +02:00
2019-07-26 15:32:11 +02:00
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
2019-08-01 19:47:45 +02:00
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
2019-07-26 15:32:11 +02:00
RUN apt-get install -y nodejs
# postgres
RUN apt-get install -y postgresql-10
# nginx
RUN apt-get install -y nginx
# application
RUN mkdir /opt/server
2019-08-01 09:53:33 +02:00
COPY ./lib ./opt/server
COPY ./package.json /opt/server
2019-07-26 15:32:11 +02:00
2019-08-01 19:47:45 +02:00
RUN (cd /opt/server; yarn)
2019-07-26 15:32:11 +02:00
WORKDIR /opt
CMD node ./server/index.js