Answer the question
In order to leave comments, you need to log in
How to do a partial update of files on the server using Docker?
Good afternoon everyone.
Already asked a similar question and sent me to read docker guides. But I never figured it out.
I have a project, I upload it to the server, but in parallel, front-end developers work with the server and changes occur in the database, which is obvious.
I have a docker file:
# Base Image
FROM python:3.7
# create and set working directory
RUN mkdir /Test
WORKDIR /Test
# Add current directory code to working directory
ADD . /Test/
# set default environment variables
ENV PYTHONUNBUFFERED 1
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
# set project environment variables
# grab these via Python's os.environ
# these are 100% optional here
ENV PORT=8888
#ENV DEBUG=0
# Install system dependencies
RUN pip3 install -r requirements.txt
# install environment dependencies
RUN pip3 install --upgrade pip
RUN pip3 install pipenv
# Install project dependencies
RUN pipenv install --skip-lock --system --dev
EXPOSE 8888
CMD gunicorn Test.wsgi:application --bind 0.0.0.0:$PORT
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question