aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.dockerignore2
-rw-r--r--bridge/Dockerfile9
-rw-r--r--bridge/index.js2
3 files changed, 6 insertions, 7 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 00000000..27c38f71
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,2 @@
+**/.git
+**/node_modules
diff --git a/bridge/Dockerfile b/bridge/Dockerfile
index 5db05345..8fa8f061 100644
--- a/bridge/Dockerfile
+++ b/bridge/Dockerfile
@@ -1,8 +1,8 @@
-FROM keymetrics/pm2:latest-alpine
+FROM keymetrics/pm2:18-alpine
# Bundle APP files
-COPY ../public/bridge.js .
-COPY ecosystem.config.js .
+COPY public/bridge.js .
+COPY bridge/ecosystem.config.js .
# Install app dependencies
ENV NPM_CONFIG_LOGLEVEL warn
@@ -11,7 +11,4 @@ ENV DEBUG http
# Expose the listening port of your app
EXPOSE 8081
-# Show current folder structure in logs
-RUN ls -al -R
-
CMD [ "pm2-runtime", "start", "ecosystem.config.js" ]
diff --git a/bridge/index.js b/bridge/index.js
index 8369f803..727bd395 100644
--- a/bridge/index.js
+++ b/bridge/index.js
@@ -11,7 +11,7 @@ app.use(raw())
app.use(cors())
const router = express.Router()
-router.get('/api/oembed', oembed)
+router.get('/oembed', oembed)
app.use(router)