Reorder Dockerfile commands to take better advantage of the Docker cache.

This commit is contained in:
vexorian 2020-06-17 10:09:48 -04:00 committed by Jordan Koehn
parent 899a1b24f7
commit 1115b2dd21

View File

@ -4,8 +4,8 @@ RUN apk add --no-cache ffmpeg && ffmpeg -version
WORKDIR /home/node/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm install -g browserify
RUN npm run build
EXPOSE 8000
CMD [ "npm", "start"]
COPY . .
RUN npm run build