Initial release of WortKraft German A2/B1 learning studio
This commit is contained in:
commit
f35864a03e
12 files changed
+4528
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=80
|
||||
ENV DATA_DIR=/app/data
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
COPY index.html styles.css app.js ./
|
||||
COPY data/ ./data/
|
||||
COPY server/ ./server/
|
||||
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
HEALTHCHECK --interval=15s --timeout=5s --start-period=5s --retries=3 \
|
||||
CMD wget --quiet --tries=1 --spider http://127.0.0.1:80/api/health || exit 1
|
||||
|
||||
CMD ["node", "server/index.js"]
|
||||
Reference in new issue
Block a user