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
Showing
5 changed files
with
57 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM node:16-alpine3.14 | ||
|
||
ENV TZ=Etc/GMT | ||
|
||
# vips required to run sharp library for image comparison | ||
RUN echo "http://dl-4.alpinelinux.org/alpine/v3.14/community" >> /etc/apk/repositories \ | ||
&& apk --update add vips | ||
|
||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
WORKDIR /usr/app | ||
|
||
COPY package*.json ./ | ||
COPY tsconfig.json . | ||
|
||
RUN npm install | ||
|
||
ADD . /usr/app | ||
|
||
RUN npm run build | ||
|
||
ENV NPM_CONFIG_LOGLEVEL debug | ||
|
||
ARG log_dir=/home/node/logs | ||
RUN mkdir -p $log_dir | ||
VOLUME $log_dir | ||
ENV LOG_DIR=$log_dir | ||
|
||
CMD [ "node", "src/index.js", "run", "all", "--port $PORT"] |
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,3 +1,4 @@ | ||
build: | ||
docker: | ||
worker: Dockerfile | ||
web: heroku.Dockerfile | ||
worker: heroku.Dockerfile |
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