Hello,
Im new to docker and dont know much about frappe as well
I have created a project using the existing apps such as frappe, erpnext, hrms
but i made changes in those apps itself like adding doctype, creating endpoints in api level
Create a Dockerfile in your project directory. This file will define how your Docker image is built. Here’s a basic example:
Dockerfile
# Use an official Python runtime as a parent image
FROM frappe/erpnext-worker:edge
# Set the working directory in the container
WORKDIR /home/frappe/frappe-bench
# Copy your custom app(s) into the container
COPY ./custom_apps/* /home/frappe/frappe-bench/apps/
# Install any additional dependencies if needed
# For example, if you have custom requirements for your app
# RUN pip install -r requirements.txt
# Set permissions (adjust as necessary)
RUN chown -R frappe:frappe /home/frappe/frappe-bench/apps/*
# Expose ports (if necessary)
# EXPOSE 80
# Start the services
CMD ["bench", "start"]
2. Directory Structure
Make sure your project directory structure looks something like this:
Oh, I guess you made some changes to the inbuilt frappe, hrms , erpnext apps and now you want to see the changes live on your server, but you don’t know how to integrate these ?
please correct me if I’m wrong.
I did the changes in my built in apps which is in my local system, now i want to make a docker image out of it so that itll be easier if i run it in another system
To create that I dont know how to do it
Welcome, and yes you need to check the link and other sources, basically you need to dockerize the file (create docker image ) of the changes you made. and then you can add to other system while configuration.
No, I couldn’t install the apps from my private repository in which i did changes
So finally now doing fresh installation and creating the new erpnext with hrms where im redoing the whole changes again
and also I switched from version 14 to 15 as there was lots of issues to install this version
This is only my experience dont generalise it
I might have made some mistakes unaware of the process
No i installed erpnext in docker itself, but the changes that i made in erpnext which i installed in my local system( no docker), I couldnt reflect it in the docker installation