forked from fedebertolini/personio-slack-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
62 lines (39 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM node:latest
RUN apt-get update && apt-get install -y cron
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
CMD [ "npm", "run", "start"]
# FROM node:latest
# # Create app directory
# WORKDIR /usr/src/app
# # Install app dependencies
# # A wildcard is used to ensure both package.json AND package-lock.json are copied
# # where available (npm@5+)
# COPY package*.json ./
# RUN npm install
# # If you are building your code for production
# # RUN npm ci --only=production
# # Bundle app source
# COPY . .
# CMD [ "npm", "run", "start"]
# FROM ubuntu:latest
# # Add crontab file in the cron directory
# ADD crontab /etc/cron.d/hello-cron
# # Give execution rights on the cron job
# RUN chmod 0644 /etc/cron.d/hello-cron
# # Create the log file to be able to run tail
# RUN touch /var/log/cron.log
# #Install Cron
# RUN apt-get update
# RUN apt-get -y install cron
# # Run the command on container startup
# CMD cron && tail -f /var/log/cron.log