ketr.photos/Dockerfile
James Ketrenos c2f72df80a Improved slideshow to support ?holiday URL matching
Added docker config

Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
2019-11-28 01:54:02 -08:00

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" ]