Skip to content

Commit 5eab59a

Browse files
committed
fix(docker): base Dockerfile off of node:14
1 parent 4026435 commit 5eab59a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*
2-
!bin
2+
!src
3+
!package*.json
4+
!tsconfig.server.json

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
FROM --platform=linux/amd64 debian:stable-slim
2-
COPY bin/postgres-meta-linux /bin/postgres-meta
1+
FROM node:14
2+
WORKDIR /usr/src/app
3+
# Do `npm ci` separately so we can cache `node_modules`
4+
# https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
5+
COPY package*.json ./
6+
RUN npm clean-install
7+
COPY . .
8+
RUN npm run build:server
39
ENV PG_META_PORT=8080
4-
ENTRYPOINT ["postgres-meta"]
10+
CMD ["npm", "run", "start"]
511
EXPOSE 8080

0 commit comments

Comments
 (0)