mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- working production docker-compose setup
This commit is contained in:
parent
c5a1243b4b
commit
52842c51bb
@ -75,12 +75,13 @@ 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 ${DOCKER_WORKDIR}/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 ${DOCKER_WORKDIR}/public/img/ ./public/img/
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/public/providers.json ./public/providers.json
|
COPY --from=build ${DOCKER_WORKDIR}/public/providers.json ./public/providers.json
|
||||||
# yarn install
|
# Copy package.json for script definitions (lock file should not be needed)
|
||||||
RUN yarn install --production=true --frozen-lockfile --non-interactive --no-cache
|
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"
|
||||||
@ -75,14 +75,15 @@ FROM base as production
|
|||||||
|
|
||||||
# Copy "binary"-files from build image
|
# Copy "binary"-files from build image
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/.nuxt ./.nuxt
|
COPY --from=build ${DOCKER_WORKDIR}/.nuxt ./.nuxt
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./
|
COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
|
||||||
|
COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./nuxt.config.js
|
||||||
# Copy static files
|
# Copy static files
|
||||||
# TODO - this should be one Folder containign all stuff needed to be copied
|
# TODO - this should be one Folder containign all stuff needed to be copied
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/constants ./constants
|
COPY --from=build ${DOCKER_WORKDIR}/constants ./constants
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/static ./static
|
COPY --from=build ${DOCKER_WORKDIR}/static ./static
|
||||||
COPY --from=build ${DOCKER_WORKDIR}/locales ./locales
|
COPY --from=build ${DOCKER_WORKDIR}/locales ./locales
|
||||||
# yarn install
|
# Copy package.json for script definitions (lock file should not be needed)
|
||||||
RUN yarn install --production=true --frozen-lockfile --non-interactive --no-cache
|
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