-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caf8844
commit accd54e
Showing
4 changed files
with
5,615 additions
and
13 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
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,23 +1,23 @@ | ||
ARG NODE_VERSION=18.0.0 | ||
FROM node:${NODE_VERSION}-alpine | ||
|
||
RUN apk add --no-cache --update curl ca-certificates openssl git tar bash sqlite fontconfig \ | ||
RUN apk add --no-cache --update curl ca-certificates openssl \ | ||
&& adduser --disabled-password --home /home/container container | ||
|
||
LABEL org.opencontainers.image.authors="idankob@gmail.com" | ||
|
||
ENV NODE_ENV production | ||
|
||
WORKDIR /home/container | ||
WORKDIR /app/ | ||
|
||
COPY package*.json ./ | ||
RUN npm install | ||
COPY package*.json /app/ | ||
RUN npm ci --omit=dev | ||
COPY . /app/ | ||
|
||
USER container | ||
|
||
COPY . . | ||
WORKDIR /home/container/ | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["node", "index.js"] | ||
CMD ["node", "/app/index.js"] |
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
Oops, something went wrong.