Using Pasta with Docker¶
You do not need to be building Docker images to use the Pasta Docker image. It works great for local compilation!
Go to the directory with your Pastacode source files (must have at least one main)
Run this command to execute the code:
docker run -v"$(pwd):/code" 'mverleg/pastacode:latest'
Building Docker image¶
You can package your project in a Docker image using a Dockerfile like this:
FROM mverleg/pastacode:latest COPY . /code
This image can then be built and ran using:
docker build -t my_pasta_project . docker run my_pasta_project