From 679c3238e24a3b8eea399fc94d1c475d4f4c7f89 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Thu, 1 Aug 2024 01:04:10 -0600 Subject: [PATCH] refactor: update dockerfile --- .github/workflows/deploy.yml | 7 +------ Dockerfile.docs | 2 +- Dockerfile.website | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4179d255..2051680b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,14 +1,9 @@ -name: Build and Publish Docker image +name: Build Docs & Website Docker images on: push: - branches: ["feat/docker-images-apps"] - pull_request: branches: ["canary", "main"] -env: - IMAGE_NAME: dokploy/website:latest - jobs: build-and-push-image-docs: runs-on: ubuntu-latest diff --git a/Dockerfile.docs b/Dockerfile.docs index 099cce9d..71b790ec 100644 --- a/Dockerfile.docs +++ b/Dockerfile.docs @@ -32,4 +32,4 @@ COPY --from=build /prod/docs/package.json ./package.json COPY --from=build /prod/docs/node_modules ./node_modules EXPOSE 3000 -CMD [ "pnpm", "start" ] \ No newline at end of file +CMD HOSTNAME=0.0.0.0 && pnpm start \ No newline at end of file diff --git a/Dockerfile.website b/Dockerfile.website index d8f50fb2..9932f527 100644 --- a/Dockerfile.website +++ b/Dockerfile.website @@ -32,4 +32,4 @@ COPY --from=build /prod/website/package.json ./package.json COPY --from=build /prod/website/node_modules ./node_modules EXPOSE 3000 -CMD [ "pnpm", "start" ] \ No newline at end of file +CMD HOSTNAME=0.0.0.0 && pnpm start \ No newline at end of file