built image
docker build -t book-voyage .
create .env file
touch .env
nano .env
# then fill the env with the necessary variable
running
docker run --name mashup -p 80:3000 -p 4000:4000 --env-file .env -i -t book-voyage
then access the website via localhost:80
built image targeting linux and push to dockerhub
docker buildx build --platform linux/amd64 --push -t pondpiu/book-voyage .
create .env file
touch .env
nano .env
# then fill the env with the necessary variable
running image on ec2
docker run --name mashup -p 80:3000 -p 4000:4000 --env-file .env -i -t pondpiu/book-voyage