Skip to content

Commit

Permalink
fix: missing tzdata in Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 12, 2023
1 parent 33be2f7 commit 1554ed5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions infra/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine3.18 AS base
WORKDIR /app
RUN apk add --no-cache tzdata=2023c-r1

FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine3.18 AS build
ARG TARGETARCH
WORKDIR /src
COPY ["App/App.csproj", "App/"]
Expand Down
3 changes: 2 additions & 1 deletion infra/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine3.18 AS build
RUN apk add --no-cache tzdata=2023c-r1
WORKDIR /app
COPY ["App/App.csproj", "App/"]
ENV DOTNET_WATCH_RESTART_ON_RUDE_EDIT=true
Expand Down
3 changes: 2 additions & 1 deletion infra/migrate.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine as builder
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine3.18 as builder
RUN apk add --no-cache tzdata=2023c-r1
ARG TARGETARCH
RUN addgroup -g 1000 dotnet && adduser -G dotnet -u 1000 dotnet -D
USER dotnet
Expand Down

0 comments on commit 1554ed5

Please sign in to comment.