Skip to content

Commit

Permalink
updated to latest latitude app
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos committed May 13, 2024
1 parent c28193e commit ddfd2e5
Show file tree
Hide file tree
Showing 6 changed files with 1,288 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .dockerignore
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.latitude
.DS_Store
.env
node_modules
16 changes: 11 additions & 5 deletions Dockerfile
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
Expand All @@ -23,4 +30,3 @@ WORKDIR /usr/src/app/build
EXPOSE 3000

CMD ["node", "build"]

2 changes: 1 addition & 1 deletion latitude.json
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"
}
Loading

0 comments on commit ddfd2e5

Please sign in to comment.