Files
wger/extras/docker/base/Dockerfile
2020-10-03 17:15:01 +02:00

42 lines
849 B
Docker

#
# Base Docker image for wger images
#
#
# This dockerfile simply installs all common dependencies for the
# other images and does not do anything on its own.
#
# docker build --tag wger/base .
#
FROM ubuntu:20.04
LABEL maintainer="Roland Geider <roland@geider.net>"
# Install dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
git \
locales \
nodejs \
npm \
python3-venv \
python3-pip \
sqlite3 \
netcat-openbsd \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g yarn@1.22.5 sass\
&& locale-gen en_US.UTF-8
# Environmental variables
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Add wger user
RUN adduser wger --disabled-password --gecos ""