Dockerfile 334 Bytes
Newer Older
Jefferson Sofarelli's avatar
v0.1  
Jefferson Sofarelli committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM ubuntu:20.04

RUN apt-get update \
  && apt-get install -y curl gnupg build-essential \
  && curl --silent --location https://deb.nodesource.com/setup_14.x | bash - \
  && apt-get update \
  && apt-get install -y nodejs

ENV NODE_ENV production
WORKDIR /honorbox-api
COPY ./ .
RUN npm run build
EXPOSE 1337

CMD ["npm", "start"]