Commit 80ca3759 authored by Francesco Meli's avatar Francesco Meli

Added docker file to project

parent ad03a1ed
FROM debian:stable-slim
# install basic
RUN apt-get update && apt-get upgrade -yy && \
apt-get install -yy wget python3-psycopg2 python3-pip libpq5 python3 curl git apt-transport-https
#isntall node
RUN curl -sL | bash -
RUN apt-get install -y nodejs
# install yarn
RUN curl -sS | apt-key add -
RUN echo "deb stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -yy yarn
# clone project
RUN git clone
WORKDIR /opt/client-web
# go to correct branch
RUN git checkout staging
# copy constants from sample constants
RUN cp webapp/ webapp/
# install python packages
RUN pip3 install -r requirements.txt
# install js packages
RUN yarn install
# transpile javascript
RUN yarn js
# transpile css
RUN yarn css
# expose port for webserver
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment