Skip to content

Commit

Permalink
reduced the size of the dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavTinker committed Jul 17, 2022
1 parent 763b06a commit 1e63a60
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ COPY . /app
RUN mkdir officialWebsite/database
RUN mkdir officialWebsite/media

# remove client folder from image
RUN rm -rf officialWebsite/client

# remove automatesSetup folder from the image
RUN rm -rf officialWebsite/automatedSetup

# Remove playbooks
RUN rm -rf officialWebsite/playbooks

# remove the dockerfile and compose file
RUN rm -f Dockerfile
RUN rm -f .dockerignore
RUN rm -f docker-compose.yml

# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
Expand Down

0 comments on commit 1e63a60

Please sign in to comment.