14 lines
231 B
Docker
14 lines
231 B
Docker
FROM node:20
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Environment replacement process
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
ENV PORT=5200
|
|
EXPOSE 5200
|
|
CMD ["node", ".output/server/index.mjs"] |