@things-factory/operato-ecs 8.0.0-alpha.2 → 8.0.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile CHANGED
@@ -1,16 +1,32 @@
1
- # Use an official ubuntu image
1
+ # Use an official ubuntu-based image
2
2
  FROM hatiolab/operato-env:latest
3
3
 
4
4
  # Set the working directory to /app
5
5
  WORKDIR /app
6
6
 
7
- # copy application & configuration files
7
+ # Copy application and configuration files to the working directory
8
8
  COPY . .
9
9
 
10
- # run node install command
10
+ # Run the yarn install command to install dependencies
11
11
  RUN yarn install
12
12
 
13
- # Make port 3000 available to the world outside this container
13
+ # Install required packages (necessary for locale setup)
14
+ RUN apt-get update && apt-get install -y locales tzdata
15
+
16
+ # Generate the en_US.UTF-8 locale
17
+ RUN locale-gen en_US.UTF-8
18
+
19
+ # Set environment variables for locale and timezone
20
+ ENV LANG=en_US.UTF-8
21
+ ENV LANGUAGE=en_US:en
22
+ ENV LC_ALL=en_US.UTF-8
23
+ ENV TZ=UTC
24
+
25
+ # Set timezone to UTC (using tzdata)
26
+ RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo "UTC" > /etc/timezone
27
+
28
+ # Expose port 3000 to allow access to the application outside the container
14
29
  EXPOSE 3000
15
30
 
16
- CMD [ "yarn", "run", "serve" ]
31
+ # Command to run the application using yarn
32
+ CMD [ "yarn", "run", "serve" ]
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file