-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
64 lines (61 loc) · 1.83 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM ubuntu:18.04
# https://rtfm.co.ua/en/docker-configure-tzdata-and-timezone-during-build/
ENV TZ=Asia/Kolkata
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y
# Install Node.js
RUN apt-get install -y curl
RUN apt-get install -y gnupg-agent
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl --silent --location https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y build-essential
RUN apt install -y yarn
RUN node --version
RUN yarn --version
RUN apt-get install -y qpdf
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update
RUN apt-get install -y python3.8
RUN python3 --version
RUN apt-get install -y python3-tk ghostscript
RUN gs -version
RUN apt-get install -y python3-pip
RUN apt-get install -y libsm6 libxext6 libxrender-dev
RUN pip3 install 'opencv-python==4.2.0.34'
RUN pip3 install "camelot-py[cv]"
WORKDIR /codebase
COPY package.json ./
COPY yarn.lock ./
RUN yarn
COPY . ./
ARG NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
ARG NEXT_PUBLIC_FIREBASE_DATABASE_URL
ARG FIREBASE_CLIENT_EMAIL
ARG NEXT_PUBLIC_FIREBASE_PROJECT_ID
ARG NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY
ARG FIREBASE_PRIVATE_KEY
ARG NEXT_PUBLIC_GOOGLE_CLIENT_ID
ARG GOOGLE_CLIENT_SECRET
ARG NEXT_PUBLIC_GOOGLE_OAUTH_REDIRECT_URI
ARG NEXT_PUBLIC_EMAILAPI_DOMAIN
ARG EMAILAPI_BASE_URL
ARG JSONBOX_NETWORK_URL
ARG MAILGUN_API_KEY
ARG MAILGUN_DOMAIN
ARG NEXT_PUBLIC_SENDING_EMAIL_ID
ARG MAILGUN_API_BASE_URL
ARG OTP_EMAILAPI_USER_ID
ARG NODE_DEBUG
ARG NODE_ENV
ARG SENTRY_DSN
ARG GOOGLE_SERVICE_ACCOUNT_EMAIL
ARG GOOGLE_PRIVATE_KEY
ARG REDISCLOUD_URL
RUN yarn build
EXPOSE 3000
CMD ["yarn", "start"]