Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #152 from glogiotatidis/dockeruser
Browse files Browse the repository at this point in the history
Add docker user.
  • Loading branch information
pmac committed Nov 24, 2015
2 parents d755537 + a80a15b commit 69eeb5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM debian:jessie

RUN adduser --uid 1000 --disabled-password --gecos '' --no-create-home webdev
WORKDIR /app

EXPOSE 8000
Expand All @@ -20,3 +21,7 @@ COPY . /app
RUN apt-get purge -y python-dev build-essential
RUN apt-get autoremove -y
RUN rm -rf /var/lib/{apt,dpkg,cache,log} /usr/share/doc /usr/share/man /tmp/*

# Change User
RUN chown webdev.webdev -R .
USER webdev

0 comments on commit 69eeb5e

Please sign in to comment.