forked from TabbycatDebate/tabbycat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 787 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Docker file lists all the commands needed to setup a fresh linux instance to
# run the application specified. docker-compose does not use this.
# Grab a python image
FROM python:3.6
# Just needed for all things python (note this is setting an env variable)
ENV PYTHONUNBUFFERED 1
# Setup Node/NPM
RUN apt-get update && apt-get install curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash && apt-get install -y nodejs
# Copy all our files into the baseimage and cd to that directory
RUN mkdir /tcd
WORKDIR /tcd
# Can this be skipped? Takes ages
ADD . /tcd/
# Install our node/python requirements
RUN pip install -r ./requirements_common.txt
RUN npm install
# Compile all the static files
RUN npm rebuild node-sass
RUN python ./tabbycat/manage.py collectstatic --no-input