Skip to content

Commit

Permalink
Adiciona timezone ao container
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueAmorim20 committed Dec 5, 2023
1 parent 0e72600 commit 53e2cd4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ FROM node:18.17.0-alpine

ENV NODE_ENV=production

ARG TZ='America/Sao_Paulo'

ENV TZ ${TZ}

RUN apk upgrade --update
RUN apk add --no-cache tzdata openssl
RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime
RUN echo "${TZ}" > /etc/timezone

WORKDIR /app

COPY --chown=node:node --from=BUILD_IMAGE /home/node/app/dist /app
Expand Down

0 comments on commit 53e2cd4

Please sign in to comment.