mirror of https://github.com/lissy93/dashy
Change CMD and copy only dist, not dist and public
This commit is contained in:
parent
3d4a8ecf6d
commit
9c35fe4027
|
@ -39,11 +39,15 @@ WORKDIR ${DIRECTORY}
|
||||||
RUN apk add --no-cache tzdata tini
|
RUN apk add --no-cache tzdata tini
|
||||||
|
|
||||||
# Copy built application from build phase
|
# Copy built application from build phase
|
||||||
COPY --from=BUILD_IMAGE /app ./
|
COPY --from=BUILD_IMAGE /app/dist/ public/
|
||||||
|
COPY --from=BUILD_IMAGE /app/node_modules/ node_modules/
|
||||||
|
COPY services/ services/
|
||||||
|
COPY src/utils/ src/utils/
|
||||||
|
COPY package.json yarn.lock server.js ./
|
||||||
|
|
||||||
# Finally, run start command to serve up the built application
|
# Finally, run start command to serve up the built application
|
||||||
ENTRYPOINT [ "/sbin/tini", "--" ]
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
||||||
CMD [ "yarn", "build-and-start" ]
|
CMD [ "yarn", "start" ]
|
||||||
|
|
||||||
# Expose the port
|
# Expose the port
|
||||||
EXPOSE ${PORT}
|
EXPOSE ${PORT}
|
||||||
|
|
Loading…
Reference in New Issue