Explorar el Código

Dockerfile

SEO
Djordje Djoric hace 3 años
padre
commit
ea963bf807
Se han modificado 2 ficheros con 18 adiciones y 0 borrados
  1. 1
    0
      frontend/.dockerignore
  2. 17
    0
      frontend/Dockerfile

+ 1
- 0
frontend/.dockerignore Ver fichero

@@ -0,0 +1 @@
node_modules

+ 17
- 0
frontend/Dockerfile Ver fichero

@@ -0,0 +1,17 @@
FROM node:16

WORKDIR ./src

COPY package*.json ./
COPY src ./
COPY public ./

RUN npm install

ENV NODE_ENV='production'

# Bundle app source
COPY . .

EXPOSE 3000
CMD [ "npm", "start" ]

Cargando…
Cancelar
Guardar