Add start script for building and running Docker container
This commit is contained in:
parent
81cc7c3b43
commit
46c925b0c5
10
start.sh
Normal file
10
start.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
IMAGE_NAME="ft_onion_image"
|
||||||
|
CONTAINER_NAME="ft_onion_container"
|
||||||
|
|
||||||
|
# Build the Docker image
|
||||||
|
docker build -t $IMAGE_NAME -f Dockerfile .
|
||||||
|
|
||||||
|
# Run the Docker container
|
||||||
|
docker run --name $CONTAINER_NAME -d $IMAGE_NAME -p 4242:4242 --restart unless-stopped
|
||||||
Loading…
Reference in New Issue
Block a user