mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 12:46:16 +00:00
08408a9706
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.
22 lines
505 B
Docker
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"]
|