Last active
February 21, 2023 18:21
-
-
Save joseabraham/1ea632912805c330bf72002c015a83d7 to your computer and use it in GitHub Desktop.
Dockerfile for a Node.js application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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