-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (25 loc) · 878 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
# ASM dev container
FROM ubuntu:14.04
MAINTAINER JustAdam <[email protected]>
RUN apt-get clean && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
apt-get clean
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y yasm gdb gcc vim curl && \
apt-get clean
ENV TIMEZONE Europe/Oslo
RUN echo $TIMEZONE > /etc/timezone &&\
cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime &&\
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure tzdata
RUN mkdir -p /home/asm/.vim/syntax
RUN groupadd -g 1000 asm && \
useradd -d /home/asm -g 1000 asm
RUN chown -R 1000:1000 /home/asm
ENV HOME /home/asm
USER asm
RUN curl -s https://raw.githubusercontent.com/Shirk/vim-gas/master/syntax/gas.vim > /home/asm/.vim/syntax/gas.vim
ADD .vimrc /home/asm/.vimrc
VOLUME ["/workspace"]
ADD . /workspace
WORKDIR /workspace
ENTRYPOINT ["/bin/bash"]