Skip to content

Commit

Permalink
Fix UTF8 character issue
Browse files Browse the repository at this point in the history
  • Loading branch information
otherguy committed Dec 8, 2019
1 parent de19a0e commit 1f18e90
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ ENV DEBIAN_FRONTEND noninteractive

# Install prerequisites
RUN apt-get update \
&& apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl gnupg2 software-properties-common gosu
&& apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl gnupg2 software-properties-common gosu locales locales-all

# Create user and group
RUN mkdir -p /opt/dropbox /opt/dropbox/.dropbox /opt/dropbox/Dropbox \
&& useradd --home-dir /opt/dropbox --comment "Dropbox Daemon Account" --user-group --shell /usr/sbin/nologin dropbox \
&& chown -R dropbox:dropbox /opt/dropbox

# Set language
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8

# Generate locales
RUN sed --in-place '/en_US.UTF-8/s/^# //' /etc/locale.gen \
&& locale-gen

# Change working directory
WORKDIR /opt/dropbox/Dropbox

Expand Down

0 comments on commit 1f18e90

Please sign in to comment.