failing to run a Docker image

I am encountering an issue while trying to run the docker image. I am unable to access it and keep getting a permission denied error, as shown below.

#base image
FROM selenium/standalone-chrome

# Install Node.js
RUN sudo apt-get update
RUN sudo apt-get install --yes curl
RUN curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash 

#Define runtime  
ENTRYPOINT /app/login.test.js

Why am I getting a permission denied error? P.S: I have switched to the directory that contains both the Dockerfile and automation test JS files using (cd dir).

Answer №1

The .js file you have is not meant to be run as an executable, hence the permission denied error.

To execute it properly, consider using JavaScript like this:

ENTRYPOINT node /app/login.test.js

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The latest update to Selenium Grid 4.0.0 has caused Chrome Node to fail to connect to the Selenium Hub

Our team has encountered an issue after upgrading to Selenium Grid version 4.0.0 while using a docker-compose file to create a selenium grid network. The problem we are facing is that the grid is not registering to the node. The error message we keep rece ...

The absence of shadows being cast and received is causing issues with the scene's rendering

I've been diving into threejs through game development. I successfully rendered all models in the scene and added some lights, which turned out perfectly fine. However, when trying to cast and receive shadows on the plane, the object shadows in the sc ...

Exporting JSON data as an Excel file in AngularJS, including the option to customize the fonts used for the

Currently, I am working on a project where I need to convert JSON data to an Excel file using JavaScript in combination with AngularJS. So far, I have successfully converted the JSON data to CSV format. However, I faced issues with maintaining the font s ...

Is it feasible to access reference images contained within a zip/tar file using html/javascript with the help of a library?

Although this question may appear similar to others, there is a key distinction that sets it apart. In search of request efficiency rather than space efficiency, lazy loading could be the solution. However, in situations where content needs to be quickly ...

Numerous operations included in a JavaScript document

Looking to enhance my JS file by adding multiple functions, but I'm having trouble as I'm not very familiar with JavaScript. Here's what I've got so far. $(function(){ $('.incentives').hide(); $('.incentives-click&a ...

Get the most recent 5 messages that haven't been read yet

I am attempting to utilize the GMAIL API in conjunction with JavaScript to extract unread messages from a user's inbox, specifically the last 5 messages. After successful login using the G+ API, I have been trying to employ jQuery's $.get method ...

Linking information stored in an array to an object through the use of an intermediary object

How can we establish a connection between queued_Dr and upcoming_appointments using all_appointments? What would be the most effective solution for this issue? var queued_Dr = ["Dr.Salazar",["Dr.Connors","Dr.Johnson"],"D ...

Sending an Array to a $resource Route Using POST in an AngularJS ExpressJS Node Application Using MEAN.js

I am struggling with passing an array to the $save method in a $resource function and then retrieving it in my server controller to make changes to the database. Oddly, I can successfully pass a variable using GET requests, but when it comes to passing an ...

Navigating through dictionary lists using a for loop in Python with Selenium

Apologies for the somewhat misleading title, but hopefully the description provides clarity. I am looking to navigate through a series of items, however, due to the unique structure of the website, I must first click on the category it is associated with ...

Create a collection in Backbone consisting of models populated with information sourced from a JSON document

Just starting to dip my toes into the world of Backbone.js and I feel like I'm getting the hang of it. A little context: I recently built an interactive quiz using jQuery and Handlebars, but now I want to transition it over to Backbone. The Quiz pull ...

The JSONP error code 414 states that the Request-URI is too large

My attempt to transmit a large amount of data (~50000 bytes) to another server using JSONP is resulting in a 414 (Request-URI Too Large) response because JSONP only allows GET requests. Splitting the data into 2k chunks significantly slows down the entire ...

Challenges with the WebVR Boilerplate - Issues include the manager not displaying in VR mode, the camera being stuck looking straight down, and fullscreen mode only

I've been working on incorporating WebVR into a project that I created using Three.js, but I'm running into some issues with getting it to work properly. Several problems crop up when I try to view the scene: When VRMode is set to false, my ...

Troubleshooting Angular 2 with TypeScript: Issue with view not refreshing after variable is updated in response handler

I encountered a problem in my Angular 2 project using TypeScript that I could use some help with. I am making a request to an API and receiving a token successfully. In my response handler, I am checking for errors and displaying them to the user. Oddly en ...

What is the best method for submitting a form via ajax that has already been loaded using ajax, all without needing to refresh the current

I have been struggling with a problem for almost a week now. I need to submit a form using ajax, which was already loaded with ajax. I have tried multiple solutions but nothing seems to work. If anyone knows the right approach, I would greatly appreciate y ...

JavaScript and jQuery code: Trigger the vjs-fade-out class to toggle when the userActive value in video.js changes

I am currently utilizing video.js to develop a player that is compatible with various devices. One crucial feature I have included is a custom "return to menu" button located in the top right corner of the video player. The challenge I am facing is dynamic ...

Displaying an array of objects in the MUI Datagrid interface

I have integrated Redux into my project to retrieve data from the API, and this is a snapshot of the data structure: https://i.stack.imgur.com/jMjUF.png My current challenge lies in finding an effective way to display the information stored within the &a ...

Alpine Docker container encounters issues with loading memcached and redis while using PHP7

I'm in the process of creating a Docker image using Alpine Linux as the base, intending to run PHP 7.1 (apk add php7=7.1.9-r0) with specific modules installed such as memcached, mongodb, oauth, openssl, and redis. To install these modules, I use PECL ...

The search and pagination features of Bootstrap dataTable do not function properly when the data is being retrieved from an AJAX API response

Currently, I am in the process of developing an admin panel. While I have successfully loaded data from an Ajax API response into a bootstrap dataTable, I have encountered issues with the default search and pagination functionalities of the table. "proces ...

Utilizing moment.js to showcase the current time of day

Is there a way to show "Sunday Morning" if it's before noon or "Sunday Afternoon" if it's after noon? This code snippet below is what I am currently using to retrieve the current day: var now = moment().format("dddd"); $("#date").append(now); & ...

JavaScript recursive reduce function

Looking to filter through an Array of objects and extract only those with the key is_enabled=true from another Array of objects. Structure of the data: [ { 'id': 1, 'label': 'Label1', 'option ...