refactor: improved images for l-s and l-a-s
This commit is contained in:
parent
b9b532a633
commit
95df06250e
33 changed files with 137 additions and 749 deletions
24
build/server.Dockerfile
Normal file
24
build/server.Dockerfile
Normal 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" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue