aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-05-04 00:14:39 +0300
committerGravatar Hassan Abouelela <[email protected]>2022-01-30 09:36:54 +0400
commit86a3399366536cce46b5001fb3461622aaa3659b (patch)
tree7c65b361f178e2f5ed9f427c12bcc7980cc99796
parentMerge pull request #388 from python-discord/dependabot/npm_and_yarn/webpack-5... (diff)
Adds Docker File
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--.dockerignore11
-rw-r--r--Dockerfile16
2 files changed, 27 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..b08266c
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,11 @@
+# Ignore Everything
+*
+
+# Include required files
+!public/
+!src/
+!.swcrc
+!package.json
+!tsconfig.json
+!webpack.config.js
+!yarn.lock
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..8b85571
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM node:14-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"]