Skip to content

Commit

Permalink
Convert the iplayif.com app to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdannii committed Jan 21, 2024
1 parent c7ea835 commit 307aa85
Show file tree
Hide file tree
Showing 17 changed files with 1,569 additions and 2,303 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -24,6 +24,7 @@
},
"devDependencies": {
"@types/file-saver": "^2.0.7",
"@types/he": "^1.2.3",
"@types/jquery": "^3.5.11",
"@types/js-cookie": "^3.0.4",
"@types/lodash-es": "^4.17.5",
Expand Down
1 change: 1 addition & 0 deletions src/iplayif.com/.gitignore
@@ -1,3 +1,4 @@
app/build
app/data
app/node_modules
data
1 change: 1 addition & 0 deletions src/iplayif.com/app/.dockerignore
@@ -1,2 +1,3 @@
build
node_modules
npm-debug.log
14 changes: 8 additions & 6 deletions src/iplayif.com/app/Dockerfile
Expand Up @@ -5,17 +5,17 @@ FROM alpine:latest as build-babel
WORKDIR /home

RUN apk add --no-cache build-base curl && \
curl -L -s https://github.com/iftechfoundation/babel-tool/archive/refs/tags/v0.6.tar.gz | tar xz && \
mv babel-tool-0.6 babel && \
make -C babel
curl -L -s https://github.com/iftechfoundation/babel-tool/archive/8286dcfdb6bd21de59da0631894e784ac1331260.tar.gz | \
tar xz --strip-components=1 && \
make

# Stage 2: The app itself

FROM node:18-alpine
FROM node:20-alpine

WORKDIR /home/app

COPY --from=build-babel /home/babel/babel /usr/local/bin/
COPY --from=build-babel /home/babel /usr/local/bin/

COPY package*.json ./

Expand All @@ -25,4 +25,6 @@ COPY . .

EXPOSE 8080

ENTRYPOINT ["node", "src/main.js"]
RUN npm run build

ENTRYPOINT ["node", "build/main.js"]

0 comments on commit 307aa85

Please sign in to comment.