refactor: improved images for l-s and l-a-s

This commit is contained in:
Rafael Taranto 2024-08-09 11:03:43 +01:00
parent b9b532a633
commit 95df06250e
33 changed files with 137 additions and 749 deletions

24
build/server.Dockerfile Normal file
View file

@ -0,0 +1,24 @@
FROM alpine:3.14 as build
RUN apk add --no-cache nodejs npm git curl build-base net-tools python3 postgresql-dev
WORKDIR lamassu-server
COPY ["package.json", "package-lock.json", "./"]
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
RUN npm install --production
COPY . ./
FROM alpine:3.14
RUN apk add --no-cache nodejs npm git curl bash libpq openssl
COPY --from=build /lamassu-server /lamassu-server
WORKDIR /lamassu-server/
RUN chmod +x bin/lamassu-server-entrypoint.sh
EXPOSE 3000
ENTRYPOINT [ "/lamassu-server/bin/lamassu-server-entrypoint.sh" ]