docker icon indicating copy to clipboard operation
docker copied to clipboard

dockerfile config changes

Open Srinivasa381224 opened this issue 4 years ago • 2 comments

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

Srinivasa381224 avatar Jan 04 '21 07:01 Srinivasa381224

Sure, you can either mount simple files into the container or create a custom image:

FROM matomo:latest

# add custom stuff

J0WI avatar Mar 24 '21 22:03 J0WI

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

Rahul524 avatar May 07 '21 20:05 Rahul524