feat: Add timezone configuration for Docker to ensure correct time handling in production and development environments

This commit is contained in:
2025-10-04 20:52:39 +02:00
parent 9357c2e0b9
commit 5011f80fc4
6 changed files with 295 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
# Use Node.js 22.11.0 as the base image
FROM node:22.11.0
# Set timezone to Europe/Warsaw (Polish timezone)
ENV TZ=Europe/Warsaw
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install git for development
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*