File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11ARG RUBY_VERSION=3.2.3
22FROM ruby:${RUBY_VERSION}
3- ARG USER_ID=1000
4- ARG GROUP_ID=1000
5- RUN groupadd -g $GROUP_ID app && useradd -u $USER_ID -g app -m app
6- USER app
73ARG RAILS_VERSION
84# Install Rails based on the version specified but if not specified, install the latest version.
95RUN if [ -z "$RAILS_VERSION" ] ; then gem install rails ; else gem install rails -v $RAILS_VERSION ; fi
Original file line number Diff line number Diff line change 11ARG RUBY_VERSION=3.2.3
22FROM ruby:${RUBY_VERSION}
3+ ARG USER_ID=1000
4+ ARG GROUP_ID=1000
5+ RUN groupadd -g $GROUP_ID app && useradd -u $USER_ID -g app -m app
6+ USER app
37ARG RAILS_VERSION
48# Install Rails based on the version specified but if not specified, install the latest version.
59RUN if [ -z "$RAILS_VERSION" ] ; then gem install rails ; else gem install rails -v $RAILS_VERSION ; fi
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use clap::Parser;
1010
1111use crate :: docker_client:: DockerClient ;
1212
13- #[ cfg_attr( unix, path = "unix.rs" ) ]
14- #[ cfg_attr( windows, path = "windows.rs" ) ]
13+ #[ cfg_attr( all ( unix, not ( target_os = "macos" ) ) , path = "unix.rs" ) ]
14+ #[ cfg_attr( any ( windows, target_os = "macos" ) , path = "windows.rs" ) ]
1515mod os_specific;
1616
1717fn main ( ) {
Original file line number Diff line number Diff line change 11pub fn dockerfile_content ( ) -> & ' static [ u8 ] {
2- include_bytes ! ( "../Dockerfile" )
2+ include_bytes ! ( "../Dockerfile.unix " )
33}
44
55pub fn get_user_id ( ) -> Option < u32 > {
Original file line number Diff line number Diff line change 11pub fn dockerfile_content ( ) -> & ' static [ u8 ] {
2- include_bytes ! ( "../Dockerfile.windows " )
2+ include_bytes ! ( "../Dockerfile" )
33}
44
55pub fn get_user_id ( ) -> Option < u32 > {
You can’t perform that action at this time.
0 commit comments