Город МОСКОВСКИЙ
00:23:32

How to build Node.js Application with Docker | Node.js with Docker

Аватар
Кодовые реакции
Просмотры:
22
Дата загрузки:
27.11.2023 22:14
Длительность:
00:23:32
Категория:
Обучение

Описание

In this video we will learn about building a docker container for existing nodejs app. We will use alpine Linux image and copy the source code to alpine Linux and build a new docker image

===========================

https://github.com/self-tuts/Nodejs-application-with-docker

===============================

FROM alpine:latest
RUN apk add --no-cache nodejs npm


WORKDIR /app


COPY . /app


RUN npm install


EXPOSE 9005


ENTRYPOINT ["node"]

CMD ["server.js"]

Рекомендуемые видео