mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Revert remove of '${DOCKER_WORKDIR}'
This commit is contained in:
parent
3f7d1c7bd0
commit
9894abb29a
@ -90,13 +90,13 @@ CMD /bin/sh -c "yarn run dev"
|
|||||||
FROM base as production
|
FROM base as production
|
||||||
|
|
||||||
# Copy "binary"-files from build image
|
# Copy "binary"-files from build image
|
||||||
COPY --from=build ./dist ./dist
|
COPY --from=build ${DOCKER_WORKDIR}/dist ./dist
|
||||||
# Copy static files
|
# Copy static files
|
||||||
# TODO - externalize the uploads so we can copy the whole folder
|
# TODO - externalize the uploads so we can copy the whole folder
|
||||||
COPY --from=build ./public/img/ ./public/img/
|
COPY --from=build ${DOCKER_WORKDIR}/public/img/ ./public/img/
|
||||||
COPY --from=build ./public/providers.json ./public/providers.json
|
COPY --from=build ${DOCKER_WORKDIR}/public/providers.json ./public/providers.json
|
||||||
# Copy package.json for script definitions (lock file should not be needed)
|
# Copy package.json for script definitions (lock file should not be needed)
|
||||||
COPY --from=build ./package.json ./package.json
|
COPY --from=build ${DOCKER_WORKDIR}/package.json ./package.json
|
||||||
|
|
||||||
# Run command
|
# Run command
|
||||||
CMD /bin/sh -c "yarn run start"
|
CMD /bin/sh -c "yarn run start"
|
||||||
|
|||||||
@ -91,11 +91,11 @@ FROM base as production
|
|||||||
|
|
||||||
# TODO - do all copying with one COPY command to have one layer
|
# TODO - do all copying with one COPY command to have one layer
|
||||||
# Copy "binary"-files from build image
|
# Copy "binary"-files from build image
|
||||||
COPY --from=build ./.nuxt ./.nuxt
|
COPY --from=build ${DOCKER_WORKDIR}/.nuxt ./.nuxt
|
||||||
COPY --from=build ./node_modules ./node_modules
|
COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
|
||||||
COPY --from=build ./nuxt.config.js ./nuxt.config.js
|
COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./nuxt.config.js
|
||||||
# Copy package.json for script definitions (lock file should not be needed)
|
# Copy package.json for script definitions (lock file should not be needed)
|
||||||
COPY --from=build ./package.json ./package.json
|
COPY --from=build ${DOCKER_WORKDIR}/package.json ./package.json
|
||||||
|
|
||||||
# Run command
|
# Run command
|
||||||
CMD /bin/sh -c "yarn run start"
|
CMD /bin/sh -c "yarn run start"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user