Skip to content

Commit 6229f22

Browse files
committed
Iterate Docker
1 parent bf27115 commit 6229f22

File tree

4 files changed

+55
-136
lines changed

4 files changed

+55
-136
lines changed

app/Dockerfile Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM node:19
22
WORKDIR /usr/src/app
33
COPY . .
44
RUN npm install
5+
WORKDIR ./app
56
RUN npm run build
67
EXPOSE 5173
78
CMD [ "npm", "run", "serve" ]

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
11
# vizhub3
22
VizHub Platform V3
3+
4+
## Docker
5+
How to use Docker.
6+
7+
At the top level we have:
8+
9+
* `Dockerfile` - defines a container for the `app` package
10+
* `deploy.sh` - automates building this package and deploying it to AWS Fargate
11+
12+
To test locally:
13+
14+
```
15+
docker build -t vizhub3-app .
16+
```
17+
18+
## Production Deployment
19+
20+
Production deployment follows the AWS patterns in [Create a CI/CD pipeline to deploy microservices with AWS Fargate and Amazon API Gateway](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/create-a-ci-cd-pipeline-to-deploy-microservices-with-aws-fargate-and-amazon-api-gateway.html)
21+
j
22+

app/deploy.sh deploy.sh

File renamed without changes.

0 commit comments

Comments
 (0)