-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 784 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 784 Bytes
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
27
# THIS DOES NOT CURRENTLY WORK
# Docker for Mac and Docker for Linux have different networking configuration requirements for making dserve work
# On Mac all of docker runs in a vm, in Linux it can kind-of run on the host.
#
# We need the dserve container to share a localhost with the host in order to proxy to various other containers
from node:alpine
LABEL maintainer="Automattic"
# All for installing dependencies of nodegit
RUN apk update && \
apk upgrade && \
apk add git libgit2-dev && \
apk add python tzdata pkgconfig build-base && \
yarn install --production nodegit
# install rest of dependencies
COPY package.json yarn.lock tsconfig.json ./
RUN yarn --production
COPY src ./src
RUN mkdir logs
RUN mkdir repos
RUN yarn build-ts
CMD yarn serve:forever