A Jew may not drink alcohol with a non-Jew in the latter’s home or store. Even Jews who bring the alcohol from their own home and want to drink it by themselves, must not do so in a non-Jew's home or store. This is meant to prevent forming the type of connection with non-Jews that could ultimately lead to assimilation. However, on a one-time basis, if a Jew needs to drink a little to prevent a headache or as an energy boost, one may go into a non-Jewish bar, buy a kosher alcoholic beverage, drink it, and leave. If a Jew away from home is staying in a non-Jew's house (whether for free or payment), one may bring alcohol and drink it there. This is because it is considered to be one's home during his temporary stay.
Drinking irresponsibly is prohibited even when everyone drinking is Jewish, since it is likely to lead to vulgar and ugly behavior. Even great people, such as Noah and the sons of Aaron, erred as a result of alcohol abuse. The Sages therefore direct us to drink alcohol within the context of a mitzva and accompanied by words of Torah, whether this is on Shabbat, holidays or at other mitzva meals.