Skip to content

Commit

Permalink
fix(docker): base Dockerfile off of node:14
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Jan 8, 2022
1 parent 4026435 commit 5eab59a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
@@ -1,2 +1,4 @@
*
!bin
!src
!package*.json
!tsconfig.server.json
12 changes: 9 additions & 3 deletions Dockerfile
@@ -1,5 +1,11 @@
FROM --platform=linux/amd64 debian:stable-slim
COPY bin/postgres-meta-linux /bin/postgres-meta
FROM node:14
WORKDIR /usr/src/app
# Do `npm ci` separately so we can cache `node_modules`
# https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
COPY package*.json ./
RUN npm clean-install
COPY . .
RUN npm run build:server
ENV PG_META_PORT=8080
ENTRYPOINT ["postgres-meta"]
CMD ["npm", "run", "start"]
EXPOSE 8080

0 comments on commit 5eab59a

Please sign in to comment.