Skip to content

Commit

Permalink
fix port 8080 ==> 80
Browse files Browse the repository at this point in the history
  • Loading branch information
sfujiwara committed Dec 30, 2024
1 parent e949c25 commit 0951b75
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 40 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ RUN npm install
RUN npm run build


FROM nginx:1.15.12-alpine
FROM nginx:1.27.3-alpine-slim

# /etc/nginx/nginx.conf refers /etc/nginx/conf.d/*.conf.
COPY default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/frontend/dist /usr/share/nginx/html

EXPOSE 8080

CMD ["nginx", "-g", "daemon off;"]
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@ docker-build:
docker build -t $(DOCKER_IMAGE) .

docker-run:
docker run -p 8080:8080 $(DOCKER_IMAGE)
docker run -p 80:80 $(DOCKER_IMAGE)

docker-push:
docker push $(DOCKER_IMAGE)

cloud-run-deploy:
gcloud run deploy \
cloud-run:
gcloud run deploy sfujiwara \
--project $(PROJECT) \
--region us-central1 \
--image $(DOCKER_IMAGE) \
--max-instances 10 \
sfujiwara
--port 80

.PHONY: cloud-build
cloud-build:
gcloud builds submit \
--project $(PROJECT) \
--config cloudbuild.yaml \
--region us-central1
gcloud builds submit --tag $(DOCKER_IMAGE)

terraform-init:
cd terraform && terraform init
Expand Down
13 changes: 0 additions & 13 deletions cloudbuild.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions default.conf

This file was deleted.

0 comments on commit 0951b75

Please sign in to comment.