Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

WIP: Docker support #63

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:alpine

# Prepare application
RUN mkdir -p /app

# Add source code to container
COPY ./ /app

# Change workdir to applications folder
WORKDIR /app

# Install brave-sync's dependencies
RUN yarn install \
&& yarn run build

# Expose default port
EXPOSE 4000

# Populate config dir as volume to persist changes
VOLUME /app/server/config

# Define container command
CMD ["/usr/local/bin/yarn", "run", "start"]