Skip to content

Instantly share code, notes, and snippets.

@joseabraham
Last active February 21, 2023 18:21
Show Gist options
  • Save joseabraham/1ea632912805c330bf72002c015a83d7 to your computer and use it in GitHub Desktop.
Save joseabraham/1ea632912805c330bf72002c015a83d7 to your computer and use it in GitHub Desktop.
Dockerfile for a Node.js application
FROM node:alpine
# Create app directory
WORKDIR /usr/src/app
# ENV LANG es_ES.UTF-8
# ENV LC_ALL es_ES.UTF-8
# ENV LANGUAGE es_ES.UTF-8
# ENV TZ America/Bogota
RUN apk add git
RUN apk add chromium
COPY package*.json ./
RUN yarn
# Bundle app source
COPY . .
RUN yarn run build
# Create app directory
WORKDIR /usr/src/app
EXPOSE 3300
CMD [ "yarn", "run","start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment