-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test PR to trigger PR preview for testing
### What Test PR to trigger PR preview for testing ### Why I need a way to test PR previews for laboratory-v2 ### Issue addressed by this PR stellar/ops#2846
- Loading branch information
Showing
3 changed files
with
9 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
FROM ubuntu:22.04 as build | ||
FROM node:18-alpine | ||
|
||
LABEL maintainer="SDF Ops Team <[email protected]>" | ||
|
||
RUN mkdir -p /app | ||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
ENV PORT 80 | ||
WORKDIR /app | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install --no-install-recommends -y gpg curl git make ca-certificates apt-transport-https && \ | ||
curl -sSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key|gpg --dearmor >/etc/apt/trusted.gpg.d/nodesource-key.gpg && \ | ||
echo "deb https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |gpg --dearmor >/etc/apt/trusted.gpg.d/yarnpkg.gpg && \ | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ | ||
apt-get update && apt-get install -y nodejs yarn && apt-get clean | ||
|
||
|
||
COPY . /app/ | ||
RUN yarn git-info | ||
COPY . . | ||
RUN yarn install | ||
RUN yarn build | ||
|
||
FROM nginx:1.17 | ||
|
||
COPY --from=build /app/build/ /usr/share/nginx/html/ | ||
COPY --from=build /app/nginx.conf /etc/nginx/conf.d/default.conf | ||
# Run on port 80 for compatibility with laboratory v1 | ||
EXPOSE 80 | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters