Skip to content

Commit

Permalink
fix: 🐛 localtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
gongqianjun committed Feb 27, 2024
1 parent b3f5796 commit 754e45a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coder-development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ FROM codercom/enterprise-base:ubuntu
LABEL MAINTAINER [email protected]
LABEL VERSION 1.0.1

ARG DEBIAN_FRONTEND=noninteractive

ENV LANG='C.UTF-8' LC_ALL='C.UTF-8'
ENV TZ=Asia/Shanghai

USER root

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone && \
RUN apt install -y tzdata && \
# 修改用户shell
usermod -s /bin/zsh coder

Expand Down

0 comments on commit 754e45a

Please sign in to comment.