-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (57 loc) · 1.59 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# syntax=docker/dockerfile:1
FROM debian:buster
LABEL maintainer="user"
# install dependencies
RUN apt-get update \
&& apt-get -y install \
sudo \
systemd \
systemd-sysv \
build-essential \
wget \
libffi-dev \
libssl-dev \
mc \
git \
cmake \
autoconf \
automake \
libtool \
gawk \
parted \
udev \
python \
make \
qemu-system-arm \
curl \
wget \
git \
nano \
vim \
mosquitto \
mosquitto-clients \
cmake-curses-gui \
gdebi-core \
device-tree-compiler \
&& apt-get autoremove --yes \
&& apt-get clean --yes
# install KasperskyOS
# COPY ./KasperskyOS-Community-Edition_1.1.0.356_amd64.deb /tmp/KOS.deb
ADD https://ds.mai307.ru/s/CrM38T9X2LtABnZ/download/KasperskyOS-Community-Edition_1.1.0.356_amd64.deb /tmp/KOS.deb
RUN gdebi --non-interactive /tmp/KOS.deb
# попытка заменить sh на bash
# RUN echo "dash dash/sh boolean false" | debconf-set-selections
# RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# add user 'docker'
RUN useradd -r -u 1000 -U -m docker-KOS
# prepare working directory
RUN mkdir /workspace && chown -R docker-KOS /workspace
WORKDIR /workspace
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV PATH="${PATH}:/opt/KasperskyOS-Community-Edition-1.1.0.356/toolchain/bin"
RUN echo "export PS1='\u@\h \W $ '\n" >> /etc/profile
RUN echo "export PS1='\u@\h \W $ '\n" >> /root/.bashrc
# USER docker
ENTRYPOINT [ "/bin/bash" , "-l" , "-c" ]