build: 👷 New compose file and entrypoints
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -17,6 +17,7 @@ RUN yarn install --frozen-lockfile
|
||||
FROM base AS builder
|
||||
COPY --from=installer /app/ .
|
||||
COPY --from=pruner /app/out/full/ .
|
||||
COPY ./apps/${SCOPE}/.env.docker ./apps/${SCOPE}/.env.production
|
||||
RUN apt-get -qy update && apt-get -qy install openssl
|
||||
RUN yarn turbo run build --scope=${SCOPE} --include-dependencies --no-deps
|
||||
RUN find . -name node_modules | xargs rm -rf
|
||||
@@ -31,7 +32,14 @@ COPY --from=builder /app/apps/${SCOPE}/public ./public
|
||||
COPY --from=builder /app/apps/${SCOPE}/package.json ./package.json
|
||||
COPY --from=builder /app/apps/${SCOPE}/.next/standalone ./
|
||||
COPY --from=builder /app/apps/${SCOPE}/.next/static ./.next/static
|
||||
COPY --from=builder /app/apps/${SCOPE}/.env.docker ./.env.production
|
||||
RUN apt-get -qy update && apt-get -qy install openssl
|
||||
|
||||
COPY entrypoint.sh ./
|
||||
COPY ${SCOPE}-entrypoint.sh ./
|
||||
RUN chmod +x ./${SCOPE}-entrypoint.sh
|
||||
RUN chmod +x ./entrypoint.sh
|
||||
ENTRYPOINT ./${SCOPE}-entrypoint.sh
|
||||
|
||||
EXPOSE 3000
|
||||
ENV PORT 3000
|
||||
CMD ["node", "server.js"]
|
||||
ENV PORT 3000
|
||||
Reference in New Issue
Block a user