Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docker): base Dockerfile off of node:14
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
* | ||
!bin | ||
!src | ||
!package*.json | ||
!tsconfig.server.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |