16 lines
169 B
Docker
16 lines
169 B
Docker
|
|
||
|
FROM node:18
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY package*.json ./
|
||
|
|
||
|
RUN npm install
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
ARG SERVER_PORT
|
||
|
ENV PORT $SERVER_PORT
|
||
|
EXPOSE $SERVER_PORT
|
||
|
|
||
|
CMD ["npm", "run", "start:dev"]
|