-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 550 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 550 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM heroku/heroku:18
# NodeJS
RUN curl -sL https://deb.nodesource.com/setup_13.x | bash - &&\
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&\
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&\
apt-get update -y && apt-get install -y nodejs gcc g++ make yarn
WORKDIR /usr/src/app
# Install Dependencies
COPY . .
RUN yarn install
# Build Photon
RUN ./scripts/generate.sh
# Build Server
RUN yarn build
CMD ["./node_modules/.bin/probot", "run server/dist/index.js"]