docker
docker copied to clipboard
dockerfile config changes
Hi, am srinivasa working as a devops engineer am created simple docker file for my application i need to change some configuration of that application through dockerfile is there any way to change after war file is generated help me for this
Sure, you can either mount simple files into the container or create a custom image:
FROM matomo:latest
# add custom stuff
Hey @Srinivasa381224, you can see the below example of how I have made a custom image of python by adding layers to it. In the same way, you can customize it as per your requirements.
FROM python:3.7.4
ENV PYTHONUNBUFFERED=1
WORKDIR /code
COPY ./requirements.txt .
RUN pip install -r requirements.txt
COPY DLMML/ /code/DLMML
COPY BackEndApp/ /code/BackEndApp
WORKDIR /code/BackEndApp
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]`