mirror of
https://gitlab.com/nekoya/web.git
synced 2024-12-22 06:25:13 +01:00
18 lines
No EOL
224 B
Docker
18 lines
No EOL
224 B
Docker
FROM node:16.20
|
|
|
|
# Create app directory
|
|
WORKDIR /app
|
|
|
|
# Install app dependencies
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
RUN npm ci --omit=dev
|
|
|
|
# Bundle app source
|
|
COPY . .
|
|
|
|
ARG PORT
|
|
EXPOSE ${PORT}
|
|
|
|
CMD [ "node", "index.js" ] |