Skip to content

Instantly share code, notes, and snippets.

@alfrekjv
Created July 9, 2020 19:50
Show Gist options
  • Save alfrekjv/e6b48f3c42e0be7a1e718b010057b52d to your computer and use it in GitHub Desktop.
Save alfrekjv/e6b48f3c42e0be7a1e718b010057b52d to your computer and use it in GitHub Desktop.
FROM node:12.2.0-alpine
WORKDIR /srv/app
COPY package.json tsconfig.json ./
COPY . .
RUN yarn install
ENV \
PATH=/srv/app:/srv/app/node_modules/.bin:/bin:$PATH\
DEBUG=false\
PORT=443
ENV TZ=America/Mazatlan
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 443
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment