Skip to content

Commit

Permalink
change docker
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrr committed Jun 28, 2024
1 parent 9301de9 commit 33bedab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aws-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
env:
AWS_REGION: us-east-1 # AWS region, e.g. us-west-1
ECR_REPOSITORY: atlas # Amazon ECR repository name
ECS_SERVICE: atlas-service # Amazon ECS service name
ECS_SERVICE: service-service # Amazon ECS service name
ECS_CLUSTER: atlas-cluster # Amazon ECS cluster name
ECS_TASK_DEFINITION: .aws/task-definition.json # Amazon ECS task definition
CONTAINER_NAME: atlas
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build step #1: build the React front end
FROM node:18-alpine as build-step
FROM --platform=linux/amd64 public.ecr.aws/bitnami/node:20 as build-step
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY client/package*.json ./
Expand All @@ -8,7 +8,7 @@ COPY client/ ./
RUN npm run build

# Build step #2: build the API with the client as static files
FROM python:3.9
FROM public.ecr.aws/docker/library/python:3.10
WORKDIR /app
COPY --from=build-step /app/dist ./build

Expand All @@ -18,7 +18,6 @@ RUN pip install -r ./api/requirements.txt
RUN pip install gunicorn
ENV FLASK_ENV production


EXPOSE 8000
WORKDIR /app/api
CMD ["gunicorn", "-b", ":8000", "api:app"]

0 comments on commit 33bedab

Please sign in to comment.