Skip to content

Commit

Permalink
add proxy (#560)
Browse files Browse the repository at this point in the history
* add proxy

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
theosanderson and pre-commit-ci[bot] authored Nov 28, 2023
1 parent edb7466 commit 9c235d4
Show file tree
Hide file tree
Showing 6 changed files with 844 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish-backend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker publish backend
name: Docker publish proxy

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
Expand All @@ -21,7 +21,7 @@ env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
# github.repository as <account>/<repo>
IMAGE_NAME: theosanderson/taxonium_backend
IMAGE_NAME: theosanderson/taxonium_proxy

jobs:
build:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: .
file: ./Dockerfile.backend
file: ./Dockerfile.proxy
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ taxonium_component/storybook-static/**
**/*.egg-info/**
**/*.pyc
**/_version.py
*/node_modules/**
11 changes: 11 additions & 0 deletions Dockerfile.proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:17.9-alpine
WORKDIR /app

ENV MAXMEM=5000
COPY proxy ./proxy
WORKDIR /app/proxy
RUN npm install


EXPOSE 3000
CMD node server.js
Loading

1 comment on commit 9c235d4

@vercel
Copy link

@vercel vercel bot commented on 9c235d4 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.