Add ports to docker compose
This commit is contained in:
parent
242c18e682
commit
7ee142a7ed
2 changed files with 3 additions and 7 deletions
|
|
@ -1,13 +1,7 @@
|
||||||
FROM node:18
|
FROM node:alpine
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,5 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: nebula
|
container_name: nebula
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 8080:3000
|
||||||
Loading…
Add table
Reference in a new issue