Skip to content

Instantly share code, notes, and snippets.

@EnriqueTejeda
Created June 10, 2022 18:33
Show Gist options
  • Select an option

  • Save EnriqueTejeda/35667d2f7daf40afc46b8a0c844da17f to your computer and use it in GitHub Desktop.

Select an option

Save EnriqueTejeda/35667d2f7daf40afc46b8a0c844da17f to your computer and use it in GitHub Desktop.

Revisions

  1. EnriqueTejeda created this gist Jun 10, 2022.
    13 changes: 13 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    FROM node:16 AS BUILDER
    WORKDIR /app
    COPY . .
    RUN npm install --prod
    RUN npm run build

    FROM node:16-slim
    ENV TZ=America/Cancun
    RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
    WORKDIR /app
    COPY --from=BUILDER /app .
    EXPOSE 3000
    CMD ["npm","run","serve"]