-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,288 additions
and
10 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,7 +1,7 @@ | ||
# flyctl launch added from .gitignore | ||
**/.DS_Store | ||
.git* | ||
.latitude | ||
.env | ||
README.md | ||
build | ||
fly.toml | ||
|
||
node_modules |
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,3 +1,4 @@ | ||
.latitude | ||
.DS_Store | ||
.env | ||
node_modules |
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,19 +1,26 @@ | ||
FROM node:18 AS builder | ||
|
||
RUN npm install -g @latitude-data/cli | ||
FROM node:18-slim AS base | ||
|
||
COPY package.jso[n] . | ||
COPY latitude.json . | ||
RUN apt-get update && apt-get install -y curl | ||
RUN npm install -g @latitude-data/[email protected] | ||
|
||
FROM base AS builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package.jso[n] . | ||
COPY latitude.json . | ||
|
||
RUN latitude telemetry --disable | ||
RUN latitude setup | ||
|
||
FROM builder AS runner | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY --from=builder /usr/src/app/node_module[s] ./node_modules | ||
COPY --from=builder /usr/src/app/.latitude ./ | ||
COPY --from=builder /usr/src/app/latitude.json ./latitude.json | ||
COPY . . | ||
|
||
RUN latitude build | ||
|
@@ -23,4 +30,3 @@ WORKDIR /usr/src/app/build | |
EXPOSE 3000 | ||
|
||
CMD ["node", "build"] | ||
|
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,4 +1,4 @@ | ||
{ | ||
"name": "sample-netflix", | ||
"version": "0.8.0" | ||
"version": "1.2.0" | ||
} |
Oops, something went wrong.