fix: apply best practices for the latest buildkit (#5527)
This commit is contained in:
parent
3a626cd251
commit
ea29007bc0
2 changed files with 22 additions and 22 deletions
|
|
@ -9,7 +9,7 @@ RUN apk add --no-cache tzdata
|
|||
|
||||
|
||||
# install packages
|
||||
FROM base as packages
|
||||
FROM base AS packages
|
||||
|
||||
WORKDIR /app/web
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ COPY yarn.lock .
|
|||
RUN yarn install --frozen-lockfile
|
||||
|
||||
# build resources
|
||||
FROM base as builder
|
||||
FROM base AS builder
|
||||
WORKDIR /app/web
|
||||
COPY --from=packages /app/web/ .
|
||||
COPY . .
|
||||
|
|
@ -31,17 +31,17 @@ RUN yarn build
|
|||
|
||||
|
||||
# production stage
|
||||
FROM base as production
|
||||
FROM base AS production
|
||||
|
||||
ENV NODE_ENV production
|
||||
ENV EDITION SELF_HOSTED
|
||||
ENV DEPLOY_ENV PRODUCTION
|
||||
ENV CONSOLE_API_URL http://127.0.0.1:5001
|
||||
ENV APP_API_URL http://127.0.0.1:5001
|
||||
ENV PORT 3000
|
||||
ENV NODE_ENV=production
|
||||
ENV EDITION=SELF_HOSTED
|
||||
ENV DEPLOY_ENV=PRODUCTION
|
||||
ENV CONSOLE_API_URL=http://127.0.0.1:5001
|
||||
ENV APP_API_URL=http://127.0.0.1:5001
|
||||
ENV PORT=3000
|
||||
|
||||
# set timezone
|
||||
ENV TZ UTC
|
||||
ENV TZ=UTC
|
||||
RUN ln -s /usr/share/zoneinfo/${TZ} /etc/localtime \
|
||||
&& echo ${TZ} > /etc/timezone
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ COPY docker/pm2.json ./pm2.json
|
|||
COPY docker/entrypoint.sh ./entrypoint.sh
|
||||
|
||||
ARG COMMIT_SHA
|
||||
ENV COMMIT_SHA ${COMMIT_SHA}
|
||||
ENV COMMIT_SHA=${COMMIT_SHA}
|
||||
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue