mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-23 13:45:33 +02:00
Revert Dockerfile, but ensure only one conf.yml
This commit is contained in:
parent
38337ed693
commit
79754dc1e9
10
Dockerfile
10
Dockerfile
@ -39,15 +39,13 @@ 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/dist/ public/
|
COPY --from=BUILD_IMAGE /app ./
|
||||||
COPY --from=BUILD_IMAGE /app/node_modules/ node_modules/
|
# Ensure only one version of conf.yml exists
|
||||||
COPY services/ services/
|
RUN rm dist/conf.yml
|
||||||
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", "start" ]
|
CMD [ "yarn", "build-and-start" ]
|
||||||
|
|
||||||
# Expose the port
|
# Expose the port
|
||||||
EXPOSE ${PORT}
|
EXPOSE ${PORT}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user