Skip to content

Commit

Permalink
chore: remove timezone, apt mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
Soju06 committed Apr 20, 2024
1 parent 19e9388 commit eb13973
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ FROM pytorch/pytorch:2.2.2-cuda12.1-cudnn8-devel
# ====================================
# Build Arguments
# ====================================
# Set the timezone (Default: Asia/Seoul)
ARG TIMEZONE=Asia/Seoul
# Set the Python version (Default: 3.11.9)
ARG PYTHON_VERSION=3.11.9
# Set the Ubuntu APT mirror (Default: http://archive.ubuntu.com/ubuntu)
ARG UBUNTU_APT_MIRROR=http://archive.ubuntu.com/ubuntu
# Set the user and group (Default: ubuntu)
ARG USER=ubuntu
ARG GROUP=ubuntu
Expand All @@ -30,13 +26,6 @@ ENV WORKSPACE=/workspace
# VSCode Server directory (Default: /workspace/.code-server)
ENV VSCODE_HOME=${WORKSPACE}/.code-server

# Set the timezone
RUN ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime

# Change the apt source
RUN sed -i 's|http://.*.ubuntu.com/ubuntu/|${UBUNTU_APT_MIRROR}|g' /etc/apt/sources.list
RUN apt update

# Install dependencies
RUN apt update
RUN apt install -y \
Expand Down
2 changes: 0 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ docker run -d \

### Build Arguments

- `TIMEZONE`: Set the timezone. Default is `Asia/Seoul`
- `PYTHON_VERSION`: Set the Python version. Default is `3.11.9`
- `UBUNTU_APT_MIRROR`: Set the Ubuntu apt mirror. Default is `http://archive.ubuntu.com/ubuntu`
- `USER`: Set the user name. Default is `ubuntu`
- `GROUP`: Set the group name. Default is `ubuntu`
- `UID`: Set the user id. Default is `1000`
Expand Down

0 comments on commit eb13973

Please sign in to comment.