Skip to content

Commit 652fd00

Browse files
committed
fix(docker): streamline entrypoint
1 parent 2cee61d commit 652fd00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ RUN pnpm install --offline --prod
7777

7878
FROM base AS collect
7979

80-
COPY --from=prepare /srv/app/docker-entrypoint.sh /srv/app/package.json ./
8180
COPY --from=prepare /srv/app/src ./src
81+
COPY --from=prepare /srv/app/docker-entrypoint.sh /srv/app/package.json ./
8282
COPY --from=build /srv/app/node_modules ./node_modules
8383
COPY --from=lint /srv/app/package.json /dev/null
8484

@@ -91,7 +91,7 @@ FROM collect AS production
9191
ENV NODE_ENV=production
9292

9393
USER node
94-
ENTRYPOINT ["docker-entrypoint.sh"]
94+
ENTRYPOINT ["/srv/app/docker-entrypoint.sh"]
9595
CMD ["pnpm", "exec", "postgraphile", "--config", "./src/graphile.config.ts", "-n", "0.0.0.0"]
9696
EXPOSE 5678
9797
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD wget -q --spider http://127.0.0.1:5678/ || exit 1

0 commit comments

Comments
 (0)