Skip to content

Commit 125828f

Browse files
authored
Merge pull request #79 from mikesir87/78-revert-host-port-republishing
Move host port republishing back to its own service
2 parents 59a8a6c + 9a2b49b commit 125828f

File tree

14 files changed

+1373
-542
lines changed

14 files changed

+1373
-542
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:lts-slim AS base
2+
WORKDIR /usr/local/app
3+
RUN apt update && \
4+
apt install -y socat && \
5+
rm -rf /var/lib/apt/lists/*
6+
7+
COPY package* ./
8+
RUN npm install --omit=dev
9+
COPY ./src ./src
10+
11+
FROM base AS dev
12+
ENV NODE_ENV=development
13+
RUN npm install
14+
CMD ["npm", "run", "dev"]
15+
16+
FROM base AS final
17+
ENV NODE_ENV=production
18+
CMD ["node", "src/index.js"]

0 commit comments

Comments
 (0)