mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Follow suggestions of Moriz and Robert
This commit is contained in:
parent
b3538577dc
commit
3f7d1c7bd0
@ -90,14 +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 ${DOCKER_WORKDIR}/dist ./dist
|
COPY --from=build ./dist ./dist
|
||||||
# COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
|
|
||||||
# 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 ${DOCKER_WORKDIR}/public/img/ ./public/img/
|
COPY --from=build ./public/img/ ./public/img/
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/public/providers.json ./public/providers.json
|
COPY --from=build ./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 ${DOCKER_WORKDIR}/package.json ./package.json
|
COPY --from=build ./package.json ./package.json
|
||||||
|
|
||||||
# Run command
|
# Run command
|
||||||
CMD /bin/sh -c "yarn run start"
|
CMD /bin/sh -c "yarn run start"
|
||||||
|
|||||||
@ -91,18 +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 ${DOCKER_WORKDIR}/.nuxt ./.nuxt
|
COPY --from=build ./.nuxt ./.nuxt
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
|
COPY --from=build ./node_modules ./node_modules
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./nuxt.config.js
|
COPY --from=build ./nuxt.config.js ./nuxt.config.js
|
||||||
# Copy static files
|
|
||||||
# TODO - this seems not be needed anymore for the new rebranding
|
|
||||||
# TODO - this should be one Folder containign all stuff needed to be copied
|
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/config/ ./config/
|
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/constants ./constants
|
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/static ./static
|
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/locales ./locales
|
|
||||||
# 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 ${DOCKER_WORKDIR}/package.json ./package.json
|
COPY --from=build ./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