2023-10-03 19:57:41 +00:00
|
|
|
FROM --platform=linux/amd64 node:20-alpine3.18
|
2023-10-03 19:39:47 +00:00
|
|
|
|
|
|
|
# set working directory
|
|
|
|
WORKDIR /srv/openterminal
|
|
|
|
|
|
|
|
# install dependencies
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci --omit=dev
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
CMD [ "node", "./server/main.js" ]
|
|
|
|
|