Add Dockerfile

This commit is contained in:
Alex Rennie-Lis 2024-04-05 22:59:37 +01:00
parent 1d8bd0c989
commit 86ed5cf978

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM node:20-alpine
COPY ./code /app
COPY ./config /config
RUN mkdir -p /data && \
apk --no-cache add curl
HEALTHCHECK CMD curl -f http://localhost:8080/health || exit 1
EXPOSE 8080
CMD [ "node", "/app/index.js" ]