sourcecred/Dockerfile
Vanessasaurus 08408a9706 Adding Docker container with instructions for running sourcecred (#1288)
Adding docker container recipe and instructions in README for running sourcecred

Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>

Test plan: @decentralion verified that the commands work on a fresh setup prior to merging.
2019-08-23 13:23:35 +02:00

22 lines
505 B
Docker

FROM node:12
# docker build -t sourcecred .
# Set up working directory.
RUN mkdir -p /code
WORKDIR /code
# Install global and local dependencies first so they can be cached.
RUN npm install -g yarn@^1.17
COPY package.json yarn.lock /code/
RUN yarn
# Declare data directory.
ARG SOURCECRED_DEFAULT_DIRECTORY=/data
ENV SOURCECRED_DIRECTORY ${SOURCECRED_DEFAULT_DIRECTORY}
# Install the remainder of our code.
COPY . /code
RUN yarn backend
ENTRYPOINT ["/bin/bash", "/code/scripts/docker-entrypoint.sh"]