-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (22 loc) · 912 Bytes
/
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
FROM node:19.3.0-alpine as build
ARG CLIENT_VERSION=master
ARG CLIENT_REPO="https://github.com/etesync/etesync-web.git"
ARG NOTES_VERSION=master
ARG NOTES_REPO="https://github.com/etesync/etesync-notes.git"
ARG REACT_APP_DEFAULT_API_PATH="https://api.etebase.com/partner/etesync/"
RUN apk add --no-cache git; \
yarn global add expo-cli;\
export NODE_OPTIONS=--openssl-legacy-provider; \
git clone --depth 1 --branch "${CLIENT_VERSION}" "${CLIENT_REPO}" etesync-web; \
git clone --depth 1 --branch "${NOTES_VERSION}" "${NOTES_REPO}" etesync-notes; \
cd /etesync-web; \
yarn; \
yarn build; \
cd /etesync-notes; \
yarn; \
expo build:web
FROM nginx:1.23.3-alpine
COPY --from=build /etesync-web/build /usr/share/nginx/html/client
COPY --from=build /etesync-notes/web-build /usr/share/nginx/html/notes
COPY context/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80