diff options
-rw-r--r-- | .dockerignore | 11 | ||||
-rw-r--r-- | Dockerfile | 16 |
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"] |