aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Kieran Siek <[email protected]>2022-02-04 20:45:43 -0500
committerGravatar GitHub <[email protected]>2022-02-04 20:45:43 -0500
commit1226fe709748bb1ff4993d1689121001fda83102 (patch)
tree6d94ee0426a1eb1b54311ea7ca64c327f4a15398 /Dockerfile
parentMerge pull request #388 from python-discord/dependabot/npm_and_yarn/webpack-5... (diff)
parentBump Node in Dockerfile (diff)
Merge pull request #258 from python-discord/docker-compose
Add Docker Setup
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5468d09
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM node:16-slim
+WORKDIR /app
+
+# Copy in lock files
+COPY package.json .
+COPY yarn.lock .
+
+# Install dependencies
+RUN yarn install
+
+# Copy program in
+COPY . .
+
+# Serve the frontend
+ENTRYPOINT ["yarn", "run"]
+CMD ["start", "--host", "0.0.0.0"]