Skip to content

Commit 67543ad

Browse files
committed
refactor(docker): simplify CMD in Dockerfile by removing startup script
1 parent 35e606b commit 67543ad

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

apps/cms/Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,4 @@ EXPOSE 3001
5656
ENV NODE_ENV=production
5757
ENV PORT=3001
5858

59-
# Create a startup script that runs migrations then starts the app
60-
RUN echo '#!/bin/sh\n\
61-
echo "Running database migrations..."\n\
62-
pnpm --filter=cms payload migrate\n\
63-
echo "Starting CMS application..."\n\
64-
pnpm --filter=cms start' > /app/start.sh && chmod +x /app/start.sh
65-
66-
CMD ["/app/start.sh"]
59+
CMD ["pnpm", "--filter=cms", "start"]

0 commit comments

Comments
 (0)