From 2d3a50fab411bf2c17eaeaa685a58279f2b2b06d Mon Sep 17 00:00:00 2001 From: ClydeWallace22 <48610606+BrandtH22@users.noreply.github.com> Date: Thu, 11 Jan 2024 12:26:39 -0700 Subject: [PATCH] docker fix fixes for the docker file and inclusion of cname --- .dockerignore | 2 -- CNAME | 1 + Dockerfile | 19 ++++--------------- docker-compose.yml | 12 ------------ 4 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 .dockerignore create mode 100644 CNAME delete mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 93f13619..00000000 --- a/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -npm-debug.log diff --git a/CNAME b/CNAME new file mode 100644 index 00000000..6b9eed88 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +chialisp.com diff --git a/Dockerfile b/Dockerfile index b38970ab..6c162a18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,4 @@ -FROM node:16 - -WORKDIR /usr/src/app - -COPY package*.json ./ - -RUN npm install - -COPY . . - -EXPOSE 3000 - -RUN ./node_modules/yarn/bin/yarn - -CMD [ "yarn", "start" ] +FROM nginx:stable-alpine +COPY build /usr/share/nginx/html +EXPOSE 80 +CMD nginx -g "daemon off;" diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 668c2198..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: '3.7' -services: - web: - container_name: chialisp-web - build: . - volumes: - - .:/usr/src/app:cached - - /usr/src/app/node_modules - ports: - - mode: host - target: 3000 - published: 3000