Skip to content
On this page

Pre-release

You are looking at the website for the fully functional Feathers v5 (Dove) pre-release. Check out what's new, and please let us know about any issues or questions . The current v4 documentation can be found at crow.docs.feathersjs.com.

Dockerize a Feathers application

A Feathers application can be dockerized like any other Node.js application.

Create an app

sh
mkdir feathers-app
cd feathers-app/
feathers generate app
mkdir feathers-app
cd feathers-app/
feathers generate app

Dockerfile

Add the following Dockerfile to the project directory:

FROM node:lts-alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3030

CMD ["npm", "run", "start"]
FROM node:lts-alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3030

CMD ["npm", "run", "start"]

Build the image

sh
docker build -t my-feathers-image .
docker build -t my-feathers-image .

Start the container

sh
docker run -d -p 3030:3030 --name my-feathers-container my-feathers-image
docker run -d -p 3030:3030 --name my-feathers-container my-feathers-image

Released under the MIT License.