creating docker

This commit is contained in:
2022-12-18 20:27:07 -03:00
parent b5515f5df7
commit b5313169f3
3 changed files with 31 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM alpine:latest
ARG NOTION_INTEGRATION_ID
ARG NOTION_INTEGRATION_SECRET
ARG PORT
ARG NODE_ENV
RUN apk add --update nodejs npm
RUN npm install --global yarn
COPY [".", "/usr/src"]
WORKDIR "/usr/src"
RUN yarn
EXPOSE ${PORT}
CMD if [ ${NODE_ENV} = "development" ] ; then yarn run dev ; else yarn run start PORT=${PORT}; fi