-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (24 loc) · 933 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
RUN apt update \
&& apt install -y --no-install-recommends \
curl sudo wget git vim gpg-agent software-properties-common apt-utils
ENV TZ=Asia/Tokyo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ARG USER=user
ARG WKDIR=/home/work
RUN echo "root:root" | chpasswd && \
adduser --disabled-password --gecos "" ${USER} && \
echo "${USER}:${USER}" | chpasswd && \
echo "%${USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${USER} && \
chmod 0440 /etc/sudoers.d/${USER}
WORKDIR ${WKDIR}
RUN chown ${USER}:${USER} ${WKDIR}
USER ${USER}
# fish
COPY fish_setting/ ${WKDIR}/fish_setting/
RUN sudo apt install -y autoconf automake pkg-config build-essential manpages-dev libevent-dev ml-yacc bison flex libncurses5-dev
COPY tmux/ ${WKDIR}/tmux/
COPY setup.sh .
RUN sudo chmod +x setup.sh && \
./setup.sh 2> output.log