Browse Source

Update docker files

Kendall Whitman 10 months ago
parent
commit
8c46d22dde
3 changed files with 13 additions and 4 deletions
  1. 2 2
      .dockerignore
  2. 2 2
      Dockerfile
  3. 9 0
      docker-compose.yml

+ 2 - 2
.dockerignore

@@ -1,2 +1,2 @@
-node_modules/
-build/
+/node_modules
+/build

+ 2 - 2
Dockerfile

@@ -4,5 +4,5 @@ COPY . .
 RUN npm i
 RUN npm i -g serve
 RUN npm run build
-EXPOSE 3001
-CMD serve -s public -l 3001
+EXPOSE 8001
+CMD serve -s public -l 8001

+ 9 - 0
docker-compose.yml

@@ -0,0 +1,9 @@
+version: '3'
+
+services:
+  portfolio:
+    build: .
+    restart: always
+    container_name: kendallwhitman
+    ports:
+      - 8001:8001