-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.runtime
More file actions
24 lines (20 loc) · 834 Bytes
/
Dockerfile.runtime
File metadata and controls
24 lines (20 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# WeeWX Runtime Container with Locale Support
# Extends felddy/weewx:5 to include locales for Belchertown skin internationalization
FROM felddy/weewx:5
# Switch to root to install locales
USER root
# Install locales package and generate required locales for Belchertown
RUN apt-get update && \
apt-get install -y locales && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
# Generate locales for supported languages
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "ca_ES.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "it_IT.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen
# Switch back to weewx user for security
USER weewx
# Keep the original entrypoint and command from felddy/weewx
# This ensures full compatibility with the base image