-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (27 loc) · 1.13 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
FROM debian:bullseye
MAINTAINER Sagnik Sasmal, <[email protected]>
# Ignore APT warnings about not having a TTY
ENV DEBIAN_FRONTEND noninteractive
# Install OS deps
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get autoremove -y \
&& apt-get autoclean \
&& apt-get -y install dirmngr curl software-properties-common locales git cmake iproute2 \
&& apt-get -y install autoconf automake g++ libtool \
&& useradd -m -d /home/container container
# Ensure UTF-8
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \
&& locale-gen
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN curl -sL -o /tmp/node-v16.13.2-linux-x64.tar.gz https://nodejs.org/dist/v16.13.2/node-v16.13.2-linux-x64.tar.gz && \
tar -C /usr/local/ --strip-components 1 -xzf /tmp/node-v16.13.2-linux-x64.tar.gz && \
rm -f /tmp/node-v16.13.2-linux-x64.tar.gz
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
ENV YARN_CACHE_FOLDER "/home/container/node_package_cache/"
ENV NPM_CONFIG_CACHE "/home/container/node_package_cache/"
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]