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 https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
# install yarn
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 && apt-get install -yy yarn
WORKDIR /opt
# clone project
RUN git clone http://facco:facco123@gitlab.faccousa.net/faccos/client-web.git
WORKDIR /opt/client-web
# go to correct branch
RUN git checkout staging
# copy constants from sample constants
RUN cp webapp/constants.py.sample webapp/constants.py
# 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
EXPOSE 8000
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