Compare commits
1 Commits
develop
...
07bf07a942
| Author | SHA1 | Date | |
|---|---|---|---|
| 07bf07a942 |
@@ -6,7 +6,7 @@ FROM node:${NODE_VERSION} AS base
|
|||||||
|
|
||||||
ARG PORT=3000
|
ARG PORT=3000
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /app
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
FROM base AS build
|
FROM base AS build
|
||||||
@@ -25,11 +25,11 @@ FROM base AS production
|
|||||||
ENV PORT=${PORT}
|
ENV PORT=${PORT}
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
COPY --from=build /src/.output /src/.output
|
|
||||||
COPY --from=build /src/site /src/site
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get -fy install curl && rm -rf /var/cache/apt/*
|
RUN apt-get update && apt-get -fy install curl && rm -rf /var/cache/apt/*
|
||||||
|
|
||||||
|
COPY --from=build /app/.output /app/.output
|
||||||
|
COPY --from=build /app/site /app/site
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||||
CMD curl -f http://localhost:${PORT}/api/health || exit 1
|
CMD curl -f http://localhost:${PORT}/api/health || exit 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user