Skip to content

Commit

Permalink
Corrigir permissão de arquivos criados pela imagem docker #23
Browse files Browse the repository at this point in the history
  • Loading branch information
edusantana committed Jan 27, 2019
1 parent 1bbb15d commit 19a8737
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@ FROM limarka/limarka:latest

# Adicione os pacotes que precisa instalar nessa imagem customizada:
RUN tlmgr install subfig
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8
ENV LANG pt_BR.UTF8

# Configurando usuário para geração de arquivos com as mesmas permissões #23
ARG GROUP_ID=1001
ARG USER_NAME=limarka
ARG USER_ID=1001

RUN groupadd -r $USER_NAME -g $GROUP_ID && useradd --no-log-init -r -g $USER_NAME -u $USER_ID $USER_NAME

0 comments on commit 19a8737

Please sign in to comment.