Skip to content

Commit

Permalink
Fix rumbas in docker by setting the timezone in the container to UTC.
Browse files Browse the repository at this point in the history
Due to a bug in the chrono library: chronotope/chrono#755
  • Loading branch information
jhoobergs committed Aug 8, 2022
1 parent 8b94a84 commit 50033e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ RUN rm -r .git # remove large folders
FROM python:3.6.10-alpine
WORKDIR /usr/app/Numbas

RUN apk add yarn
RUN apk add --no-cache yarn tzdata
RUN yarn global add uglify-js uglifycss
RUN apk del yarn

ENV TZ=UTC
RUN cp /usr/share/zoneinfo/UTC /etc/localtime

COPY --from=numbas_fetcher /usr/app/Numbas /usr/app/Numbas
RUN pip install -r requirements.txt
Expand Down

0 comments on commit 50033e8

Please sign in to comment.