53 lines
1.2 KiB
Docker
53 lines
1.2 KiB
Docker
FROM ubuntu:disco
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y wget
|
|
|
|
# Upgrade Node
|
|
RUN wget -qO- https://deb.nodesource.com/setup_10.x | bash -
|
|
RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \
|
|
nodejs \
|
|
gcc \
|
|
g++ \
|
|
make \
|
|
cmake
|
|
|
|
# You can then install the latest npm, polymer-cli, and bower:
|
|
RUN npm install --global npm@latest npx
|
|
|
|
# Speed up face-recognition and dev tools
|
|
RUN apt-get install -y libopenblas-dev cmake
|
|
|
|
# NEF processing uses ufraw-batch
|
|
RUN apt-get install -y ufraw-batch
|
|
|
|
# Create a user with sudo access
|
|
RUN DEBIAN_FRONTEND=noninteractive \
|
|
&& apt-get install --no-install-recommends -y \
|
|
sudo
|
|
|
|
# NOTE: Requires 'sudo' package to already be installed
|
|
RUN groupadd -g 1000 user \
|
|
&& useradd --no-log-init \
|
|
-s /bin/bash \
|
|
-u 1000 \
|
|
-m \
|
|
-g user \
|
|
-G sudo \
|
|
-p $(echo "user" | openssl passwd -stdin) user
|
|
|
|
# Set 'sudo' to NOPASSWD for all container users
|
|
RUN sed -i -e 's,%sudo.*,%sudo ALL=(ALL) NOPASSWD:ALL,g' /etc/sudoers
|
|
|
|
COPY /entrypoint.sh /entrypoint.sh
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive \
|
|
&& apt-get install --no-install-recommends -y \
|
|
git
|
|
|
|
USER user
|
|
WORKDIR /website
|
|
|
|
CMD [ "/entrypoint.sh" ]
|