Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 796 Bytes

File metadata and controls

37 lines (28 loc) · 796 Bytes

PRevent dockerfile

  1. Build the app using the provided Dockerfile:

    docker buildx build -t prevent . -f docker/Dockerfile
  2. Push the image to your container registry (e.g. GCR):

    PREVENT_PATH=<your.artifact.registry>
    PREVENT_TAG=1.1
    
    docker buildx build \
      --platform linux/arm64/v8,linux/amd64 \
      --push --pull \
      -f Dockerfile \
      -t $PREVENT_PATH:$PREVENT_TAG \
      ../.
  3. Run the container:

    PREVENT_PATH=<your.artifact.registry>
    PREVENT_TAG=1.0
    docker run --rm -it $PREVENT_PATH:$PREVENT_TAG
  4. Access the container:

    PREVENT_PATH=<your.artifact.registry>
    PREVENT_TAG=1.0
    docker run --rm -it --entrypoint /bin/sh $PREVENT_PATH:$PREVENT_TAG