Skip to content

Instantly share code, notes, and snippets.

@hashware
Created June 26, 2018 07:46
Show Gist options
  • Select an option

  • Save hashware/eb67d2294d9dcaf78f79728ad07af6a2 to your computer and use it in GitHub Desktop.

Select an option

Save hashware/eb67d2294d9dcaf78f79728ad07af6a2 to your computer and use it in GitHub Desktop.

Revisions

  1. hashware created this gist Jun 26, 2018.
    21 changes: 21 additions & 0 deletions Dockerfile.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    ```
    FROM ubuntu:16.04
    MAINTAINER muser
    RUN dpkg --add-architecture i386
    RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
    RUN sed -i 's/security.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
    RUN apt update
    RUN apt install build-essential -y
    RUN apt install sudo -y
    RUN useradd -m -s /bin/bash -u 1001 userindocker
    RUN adduser userindocker sudo
    RUN echo 'userindocker:11111111' | chpasswd
    USER userindocker
    WORKDIR /home/userindocker
    CMD /bin/bash
    ```