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 842236f
Show file tree
Hide file tree
Showing 17 changed files with 1,663 additions and 2,379 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-and-deploy.yml
Expand Up @@ -47,6 +47,7 @@ jobs:
# Manually run Puppeteer's post install script
node ./node_modules/puppeteer/install.mjs
npm run link-local-emglken
cd src/iplayif.com/app && npm install
- name: Static tests
run: |
npm run lint
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 842236f

Please sign in to comment.