From c3d14eb3f13f8e69126ed57cdcb7f4e4975e90f2 Mon Sep 17 00:00:00 2001 From: dragongoose <19649813+dragongoose@users.noreply.github.com> Date: Sat, 25 Mar 2023 21:50:45 -0400 Subject: [PATCH] docker support --- Dockerfile => docker/Dockerfile | 1 + docker/docker-compose.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) rename Dockerfile => docker/Dockerfile (98%) create mode 100644 docker/docker-compose.yml diff --git a/Dockerfile b/docker/Dockerfile similarity index 98% rename from Dockerfile rename to docker/Dockerfile index 5e622e4..8139e04 100644 --- a/Dockerfile +++ b/docker/Dockerfile @@ -20,4 +20,5 @@ RUN rm -rf ./* # Copy static assets from builder stage COPY --from=builder /app/dist . # Containers run nginx with global directives and daemon off +EXPOSE 80 ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..0e0c3c2 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.9" +services: + frontend: + build: + context: "../" + dockerfile: ./docker/Dockerfile + ports: + - "8080:80" + environment: + - VITE_BACKEND_URL=http://localhost:7000 + - VITE_INSTANCE_URL=http://localhost:80