mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2025-02-12 18:31:22 +01:00
17 lines
365 B
Docker
17 lines
365 B
Docker
|
FROM node:14.17.4-alpine
|
||
|
RUN apk --no-cache add \
|
||
|
gettext \
|
||
|
bash
|
||
|
ENV NODE_ENV=production
|
||
|
WORKDIR /usr/src/app
|
||
|
COPY package.json yarn.lock ./
|
||
|
RUN yarn install --frozen-lockfile --check-files --production=true
|
||
|
COPY www ./www
|
||
|
COPY app.js ./
|
||
|
COPY ./entrypoint.sh /
|
||
|
RUN chmod +x /entrypoint.sh
|
||
|
EXPOSE 3000
|
||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||
|
CMD [ "node", "app.js" ]
|
||
|
|