Skip to content

Commit

Permalink
feat: cleanup (#389)
Browse files Browse the repository at this point in the history
Signed-off-by: Carina Ursu <carina@union.ai>

Co-authored-by: Carina Ursu <carina@union.ai>
  • Loading branch information
2 people authored and Anmol Khurana committed Apr 26, 2022
1 parent 08eb807 commit 26df2d1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 52 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN : \
# build
&& make build_prod \
# place the runtime application in /app
&& mv dist corsProxy.js index.js env.js plugins.js /app
&& mv dist index.js env.js plugins.js /app

FROM gcr.io/distroless/nodejs
LABEL org.opencontainers.image.source https://github.com/lyft/flyteconsole
Expand Down
49 changes: 0 additions & 49 deletions corsProxy.js

This file was deleted.

2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const morgan = require('morgan');
const express = require('express');
const env = require('./env');
const { applyMiddleware } = require('./plugins');
const corsProxy = require('./corsProxy.js');

const app = express();

Expand All @@ -16,7 +15,6 @@ app.use(morgan('combined'));
app.use(express.json());

app.get(`${env.BASE_URL}/healthz`, (_req, res) => res.status(200).send());
app.use(corsProxy(`${env.BASE_URL}${env.CORS_PROXY_PREFIX}`));

if (typeof applyMiddleware === 'function') {
console.log('Found middleware plugins, applying...');
Expand Down

0 comments on commit 26df2d1

Please sign in to comment.