It provides all of the required dependencies to run a Motia application inside a Docker container.
687
This repository has been deprecated, please use
motiadev/motiainstead.
This repository contains the Dockerfile and related files for building the motia-docker image, which can be used to run a Motia application in a Docker container. It provides all of the required dependencies to run a Motia application inside a Docker container.
You will need to implement your own Dockerfile where you will use this image as a base image. Use the following template for your Dockerfile:
FROM motiadev/motia-docker:latest
# Install Dependencies
COPY package*.json ./
RUN npm ci --only=production
# Move application files
COPY . .
# Enable the following lines if you are using python steps!!!
# RUN . ./python_modules/bin/activate
# # Setup python steps dependencies
# RUN npx motia@latest install
# Expose outside access to the motia project
EXPOSE 3000
# Run your application
CMD ["npm", "run", "dev"]
You can use the .dockerignore.sample file as a template for your .dockerignore file.
docker build -t motia-app .
Once you've build your image, you can run it using the following command:
docker run -it --rm -p 3000:3000 motia-app
Replace the port and the name of your image accordingly this is just an example
You are set to go! Your Motia application should now be running inside a Docker container, you can access it at http://localhost:3000 (replace the port if you used a different one).
Content type
Image
Digest
sha256:8c61857d3…
Size
209.1 MB
Last updated
about 1 year ago
docker pull motiadev/motia-docker