Sign inSign up

motiadev/motia-docker

By motiadev

Updated about 1 year ago
Archived

It provides all of the required dependencies to run a Motia application inside a Docker container.

Image
Developer tools
0

687

motiadev/motia-docker repository overview

🚨 Important 🚨

This repository has been deprecated, please use motiadev/motia instead.

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.

Usage

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"]

Create a .dockerignore file

You can use the .dockerignore.sample file as a template for your .dockerignore file.

Build the image

docker build -t motia-app .

Run your Motia application

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).

Resources

Motia Docs
Motia Repo

Tag summary

Content type

Image

Digest

sha256:8c61857d3

Size

209.1 MB

Last updated

about 1 year ago

docker pull motiadev/motia-docker