Skip to content

Commit

Permalink
Add support for Docker deploys (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Warner <brian@bdwarner.com>
  • Loading branch information
brianwarner committed Nov 20, 2020
1 parent 9798505 commit 8d19f80
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
@@ -0,0 +1,4 @@
.git
node_modules
staging
repos
16 changes: 16 additions & 0 deletions Dockerfile
@@ -0,0 +1,16 @@
FROM node:14

WORKDIR /app
COPY package*.json ./
#RUN mkdir repos
#RUN cd repos
#RUN git clone --bare https://github.com/jquery/jquery-mobile
#RUN mkdir -p staging
RUN npm install

COPY . .

RUN scripts/setup-mobile.js

EXPOSE 3000
CMD [ "node", "server.js", "-r", "/app/repos", "-s", "/app/staging" ]

0 comments on commit 8d19f80

Please sign in to comment.