Commit 8145aff1 authored by Omar Siam's avatar Omar Siam
Browse files

Change Dockerfile to standard gitlab herokuish.

Update/remove old engines in package.json.
parent 1a0a05c6
Pipeline #174426 failed with stages
in 52 minutes and 6 seconds
FROM node:14-alpine
WORKDIR /usr/src/app
# git is needed for openapi-ts-client
RUN apk update && apk upgrade && apk add --no-cache git
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --quiet
COPY . .
ARG NEXT_TELEMETRY_DISABLED=1
ARG GITLAB_BASE_URL
ARG GITLAB_REPOSITORY
ARG GITLAB_REPOSITORY_BRANCH
ARG GITLAB_ACCESS_TOKEN
ARG SSHOC_OPENAPI_DOCUMENT_URL
ARG NEXT_PUBLIC_SSHOC_BASE_URL
ARG NEXT_PUBLIC_SSHOC_API_BASE_URL
ARG NEXT_PUBLIC_RECAPTCHA_SITE_KEY
ARG NEXT_PUBLIC_MATOMO_BASE_URL
ARG NEXT_PUBLIC_MATOMO_SITE_ID
RUN yarn build
EXPOSE 3000
USER node
# run docker with --init flag to handle SIGTERM/SIGKILL
CMD ["yarn", "start"]
FROM gliderlabs/herokuish as builder
COPY . /tmp/app
ARG BUILDPACK_URL
ENV USER=herokuishuser
RUN /bin/herokuish buildpack build
FROM gliderlabs/herokuish
COPY --chown=herokuishuser:herokuishuser --from=builder /app /app
ENV PORT=5000
ENV USER=herokuishuser
EXPOSE 5000
CMD ["/bin/herokuish", "procfile", "start", "web"]
FROM node:14-alpine
WORKDIR /usr/src/app
# git is needed for openapi-ts-client
RUN apk update && apk upgrade && apk add --no-cache git
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --quiet
COPY . .
ARG NEXT_TELEMETRY_DISABLED=1
ARG GITLAB_BASE_URL
ARG GITLAB_REPOSITORY
ARG GITLAB_REPOSITORY_BRANCH
ARG GITLAB_ACCESS_TOKEN
ARG SSHOC_OPENAPI_DOCUMENT_URL
ARG NEXT_PUBLIC_SSHOC_BASE_URL
ARG NEXT_PUBLIC_SSHOC_API_BASE_URL
ARG NEXT_PUBLIC_RECAPTCHA_SITE_KEY
ARG NEXT_PUBLIC_MATOMO_BASE_URL
ARG NEXT_PUBLIC_MATOMO_SITE_ID
RUN yarn build
EXPOSE 3000
USER node
# run docker with --init flag to handle SIGTERM/SIGKILL
CMD ["yarn", "start"]
......@@ -123,10 +123,6 @@
"typescript": "^4.0.5",
"utility-types": "^3.10.0"
},
"engines": {
"node": ">=12.9",
"yarn": "^1"
},
"babel": {
"presets": [
"next/babel"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment